Raspberry color: hex codes, shades and palettes
Palettes built around raspberry. Click any swatch to copy its hex code.
A deep pink-red, brighter than wine and darker than rose. It has enough blue in it to stay cool despite being a red.
Raspberry hex, RGB, HSL and OKLCH
- HEX
#8E2F52- RGB
rgb(142, 47, 82)- HSL
hsl(338, 50%, 37%)- OKLCH
oklch(45.5% 0.132 1.2)- On white
- 7.84:1
- On black
- 2.68:1
Shades of raspberry
9 steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.
Raspberry color values
| RGB | 142 | 47 | 82 | |
|---|---|---|---|---|
| HSL | 338° | 50% | 37% | |
| HSV | 338° | 67% | 56% | |
| CMYK | 0.00 | 0.67 | 0.42 | 0.44 |
| XYZ | 13.6958 | 8.3946 | 8.8801 | |
| Yxy | 8.3946 | 0.4422 | 0.2711 | |
| CIE-Lab | 34.7916 | 43.2022 | 0.8391 | |
| Hunter Lab | 28.9735 | 33.6733 | 2.1096 | |
| OKLCH | 45.5% | 0.132 | 1.2° |
#8E2F52 is 142 red, 47 green and 82 blue. Its red channel carries the most of it. The nearest of the 216 web safe colors is #993366.
CIE-Lab, XYZ and Yxy are measured against D65, the white point sRGB itself is defined against. Hunter Lab uses the original illuminant C constants, which is what paint and plastics specifications quote, so the two Lab rows are not directly comparable. CMYK is the plain arithmetic conversion: real ink values depend on the press, the paper and the profile.
| Base | Red | Green | Blue |
|---|---|---|---|
| Binary | 10001110 | 00101111 | 01010010 |
| Octal | 216 | 57 | 122 |
| Decimal | 142 | 47 | 82 |
| Hex | 8E | 2F | 52 |
#8e2f52 mixed with black
Ten even steps of the classic shade ramp, worked out in RGB, which is how the term has always been defined and how other references list it. The OKLCH scale further down this page answers a different question: it steps by equal perceived amounts, so its values are not the same.
- #8E2F52
- #7F2A49
- #712541
- #632039
- #551C31
- #471729
- #381220
- #2A0E18
- #1C0910
- #0E0408
- #000000
#8e2f52 mixed with white
The tint ramp, by the same rule in the other direction.
- #8E2F52
- #994363
- #A45874
- #AF6D85
- #BB8297
- #C697A8
- #D1ABB9
- #DDC0CB
- #E8D5DC
- #F3EAED
- #FFFFFF
Channel shares
Color schemes
Turned in OKLCH rather than HSL, so every member keeps the lightness and chroma of the original instead of one of them arriving washed out.
Complementary
- #8E2F52
- #006559
Triadic
- #8E2F52
- #4E5F00
- #005C8C
Analogous
- #8E2F52
- #923224
- #7E3678
Monochromatic
- #0B0002
- #360017
- #670332
- #8E2F52
- #B65374
- #DF7798
- #FFA3BE
#8e2f52 on black and on white
The quick brown fox jumps over the lazy dog. 2.68:1
The quick brown fox jumps over the lazy dog. 7.84:1
Body text needs 4.5:1 to meet AA and large text needs 3:1, so a ratio tells you which of the two backgrounds this color can be read on, and at what size.
CSS for #8e2f52
color: #8e2f52;
background-color: #8e2f52;
border: 3px solid #8e2f52;
box-shadow: 1px 1px 3px 2px #8e2f52;
text-shadow: 4px 4px 2px rgba(142, 47, 82, 0.8);
/* Perceptually even, and what a modern stylesheet wants */
color: oklch(45.5% 0.132 1.2);The OKLCH form is the same color stated so that lightening or darkening it moves by an amount the eye agrees with. Every current browser understands it.
Contrast and readability
Raspberry on white measures 7.84:1 and on black 2.68:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 5.67:1.
The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.
Related colors: rose, pink, hot pink, blush, magenta, fuchsia. See every shade on the colors index.
No raspberry palettes yet
Run npm run generate to build the dataset.