#D338C2#D338C2
#D338C2 is a light, highly saturated purple. Relative luminance 0.206; OKLCH L 62.2% C 0.237 H 333.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #D338C2 |
|---|---|
| RGB | rgb(211, 56, 194) |
| HSL | hsl(307, 64%, 52%) |
| HSV | hsv(307, 73%, 83%) |
| CMYK | cmyk(0%, 73.5%, 8.1%, 17.3%) |
| CIE-LAB | lab(52.48, 73.21, -39.25) |
| CIE-LCH | lch(52.48, 83.07, 331.80°) |
| OKLab | oklab(62.17% 0.2112 -0.1078) |
| OKLCH | oklch(62.17% 0.237 333) |
| XYZ | xyz(38.0160, 20.5755, 52.9977) |
| Luminance | 0.2057 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.15
Pinky Purple
#C94CBE
ΔE00 2.59
Pinkish Purple
#D648D7
ΔE00 4.15
Purple Pink
#D725DE
ΔE00 4.38
Fuchsia (survey)
#ED0DD9
ΔE00 4.50
Purpleish Pink
#DF4EC8
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D338C2 #38D349
analogous
#9738D3 #D338C2 #D33874
triadic
#D338C2 #C2D338 #38C2D3
tetradic
#D338C2 #D39738 #38D349 #3874D3
square
#D338C2 #D39738 #38D349 #3874D3
split-complementary
#D338C2 #74D338 #38D397
monochromatic
#761A6C #A9259A #D338C2 #DE6AD1 #E99CE1
Accessibility & contrast
On white
4.11
#D338C2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#D338C2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #D338C2
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D338C2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D338C2 | 1.00 | 4.11 | 5.11 | 5.11 |
| #FFFFFF | 4.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#316FC6
Deuteranopia (green-blind)
#6C85BE
Tritanopia (blue-blind)
#DC487A
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #d338c2; /* rgb */ color: rgb(211, 56, 194); /* oklch */ color: oklch(62.2% 0.237 333.0);
Tailwind
colors: {
custom: {
50: '#e57ed5',
500: '#d338c2',
950: '#000000',
},
}SCSS
$custom: #d338c2; $custom-light: #e57ed5; $custom-dark: #000000;
JSON
{
"hex": "#d338c2",
"rgb": {
"r": 211,
"g": 56,
"b": 194
},
"hsl": {
"h": 306.581,
"s": 63.786,
"l": 52.353
},
"oklch": {
"l": 0.62173,
"c": 0.23713,
"h": 333
},
"luminance": 0.20572
}Semantic roles & 50–950 ramp
primary
#D338C2
secondary
#92D599
accent
#E75341
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83