#902ED4#902ED4
#902ED4 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 53.2% C 0.236 H 306.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #902ED4 |
|---|---|
| RGB | rgb(144, 46, 212) |
| HSL | hsl(275, 66%, 51%) |
| HSV | hsv(275, 78%, 83%) |
| CMYK | cmyk(32.1%, 78.3%, 0%, 16.9%) |
| CIE-LAB | lab(42.21, 66.69, -66.67) |
| CIE-LCH | lch(42.21, 94.30, 315.01°) |
| OKLab | oklab(53.21% 0.1403 -0.1898) |
| OKLCH | oklch(53.21% 0.236 306.5) |
| XYZ | xyz(24.3597, 12.6370, 63.4305) |
| Luminance | 0.1264 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 2.22
Darkorchid
#9932CC
ΔE00 2.32
Violet (survey)
#9A0EEA
ΔE00 3.16
Darkviolet
#9400D3
ΔE00 3.33
Vibrant Purple
#AD03DE
ΔE00 4.58
Vivid Purple
#9900FA
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#902ED4 #72D42E
analogous
#3D2ED4 #902ED4 #D42EC5
triadic
#902ED4 #D4902E #2ED490
tetradic
#902ED4 #D43D2E #72D42E #2EC5D4
square
#902ED4 #D43D2E #72D42E #2EC5D4
split-complementary
#902ED4 #C5D42E #2ED43D
monochromatic
#4C1770 #6E22A3 #902ED4 #AB61DE #C694E9
Accessibility & contrast
On white
5.95
#902ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#902ED4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #902ED4
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##902ED4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##902ED4 | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061D8
Deuteranopia (green-blind)
#0064D1
Tritanopia (blue-blind)
#845981
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #902ed4; /* rgb */ color: rgb(144, 46, 212); /* oklch */ color: oklch(53.2% 0.236 306.5);
Tailwind
colors: {
custom: {
50: '#b772e2',
500: '#902ed4',
950: '#000000',
},
}SCSS
$custom: #902ed4; $custom-light: #b772e2; $custom-dark: #000000;
JSON
{
"hex": "#902ed4",
"rgb": {
"r": 144,
"g": 46,
"b": 212
},
"hsl": {
"h": 275.422,
"s": 65.873,
"l": 50.588
},
"oklch": {
"l": 0.53213,
"c": 0.23601,
"h": 306.5
},
"luminance": 0.12637
}Semantic roles & 50–950 ramp
primary
#902ED4
secondary
#A8D48A
accent
#E93F85
background
#FBF7FE
surface
#F7EDFC
border
#D0C8D5
text
#120915
muted
#817B84