#B262E4#B262E4
#B262E4 is a light, vivid violet. Relative luminance 0.238; OKLCH L 64.3% C 0.197 H 310.4°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #B262E4 |
|---|---|
| RGB | rgb(178, 98, 228) |
| HSL | hsl(277, 71%, 64%) |
| HSV | hsv(277, 57%, 89%) |
| CMYK | cmyk(21.9%, 57%, 0%, 10.6%) |
| CIE-LAB | lab(55.89, 54.32, -53.50) |
| CIE-LCH | lch(55.89, 76.24, 315.44°) |
| OKLab | oklab(64.28% 0.128 -0.1503) |
| OKLCH | oklch(64.28% 0.197 310.4) |
| XYZ | xyz(36.7287, 23.8025, 76.0432) |
| Luminance | 0.2380 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 4.12
Lighter Purple
#A55AF4
ΔE00 4.26
Mediumorchid
#BA55D3
ΔE00 4.28
Bright Lilac
#C95EFB
ΔE00 4.45
Bright Lavender
#C760FF
ΔE00 4.60
Lightish Purple
#A552E6
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B262E4 #94E462
analogous
#7162E4 #B262E4 #E462D5
triadic
#B262E4 #E4B262 #62E4B2
tetradic
#B262E4 #E47162 #94E462 #62D5E4
square
#B262E4 #E47162 #94E462 #62D5E4
split-complementary
#B262E4 #D5E462 #62E471
monochromatic
#761EAE #982EDB #B262E4 #CC96ED #E5CAF6
Accessibility & contrast
On white
3.65
#B262E4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.76
#B262E4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B262E4
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B262E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B262E4 | 1.00 | 3.65 | 5.76 | 5.76 |
| #FFFFFF | 3.65 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3682E8
Deuteranopia (green-blind)
#5587E1
Tritanopia (blue-blind)
#AC7A9A
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #b262e4; /* rgb */ color: rgb(178, 98, 228); /* oklch */ color: oklch(64.3% 0.197 310.4);
Tailwind
colors: {
custom: {
50: '#cc92ed',
500: '#b262e4',
950: '#000000',
},
}SCSS
$custom: #b262e4; $custom-light: #cc92ed; $custom-dark: #000000;
JSON
{
"hex": "#b262e4",
"rgb": {
"r": 178,
"g": 98,
"b": 228
},
"hsl": {
"h": 276.923,
"s": 70.652,
"l": 63.922
},
"oklch": {
"l": 0.64282,
"c": 0.1974,
"h": 310.4
},
"luminance": 0.23802
}Semantic roles & 50–950 ramp
primary
#B262E4
secondary
#CCE8BA
accent
#D3135D
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84