#7B226B#7B226B
#7B226B is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.0% C 0.149 H 336.0°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).
Color values
| HEX | #7B226B |
|---|---|
| RGB | rgb(123, 34, 107) |
| HSL | hsl(311, 57%, 31%) |
| HSV | hsv(311, 72%, 48%) |
| CMYK | cmyk(0%, 72.4%, 13%, 51.8%) |
| CIE-LAB | lab(30.44, 46.36, -22.17) |
| CIE-LCH | lch(30.44, 51.39, 334.44°) |
| OKLab | oklab(41.99% 0.1358 -0.0604) |
| OKLCH | oklch(41.99% 0.149 336) |
| XYZ | xyz(11.3944, 6.4175, 14.5457) |
| Luminance | 0.0642 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Darkish Purple
#751973
ΔE00 3.55
Rich Purple
#720058
ΔE00 4.94
Grape
#6C3461
ΔE00 5.53
Purple
#800080
ΔE00 5.71
Velvet
#750851
ΔE00 5.89
Bruise
#7E4071
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B226B #227B32
analogous
#5E227B #7B226B #7B223E
triadic
#7B226B #6B7B22 #226B7B
tetradic
#7B226B #7B5E22 #227B32 #223E7B
square
#7B226B #7B5E22 #227B32 #223E7B
split-complementary
#7B226B #3E7B22 #227B5E
monochromatic
#1B0718 #4B1541 #7B226B #AB2F95 #CD4AB6
Accessibility & contrast
On white
9.20
#7B226B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#7B226B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7B226B
9.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B226B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B226B | 1.00 | 9.20 | 2.28 | 9.20 |
| #FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#233F6D
Deuteranopia (green-blind)
#414C69
Tritanopia (blue-blind)
#812843
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #7b226b; /* rgb */ color: rgb(123, 34, 107); /* oklch */ color: oklch(42.0% 0.149 336.0);
Tailwind
colors: {
custom: {
50: '#a46695',
500: '#7b226b',
950: '#000000',
},
}SCSS
$custom: #7b226b; $custom-light: #a46695; $custom-dark: #000000;
JSON
{
"hex": "#7b226b",
"rgb": {
"r": 123,
"g": 34,
"b": 107
},
"hsl": {
"h": 310.787,
"s": 56.688,
"l": 30.784
},
"oklch": {
"l": 0.41994,
"c": 0.14858,
"h": 336
},
"luminance": 0.06417
}Semantic roles & 50–950 ramp
primary
#7B226B
secondary
#4BAE5D
accent
#E06348
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E