#B262C8#B262C8
#B262C8 is a light, vivid purple. Relative luminance 0.224; OKLCH L 62.7% C 0.168 H 318.6°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).
Color values
| HEX | #B262C8 |
|---|---|
| RGB | rgb(178, 98, 200) |
| HSL | hsl(287, 48%, 58%) |
| HSV | hsv(287, 51%, 78%) |
| CMYK | cmyk(11%, 51%, 0%, 21.6%) |
| CIE-LAB | lab(54.42, 48.43, -39.97) |
| CIE-LCH | lch(54.42, 62.79, 320.47°) |
| OKLab | oklab(62.72% 0.126 -0.1109) |
| OKLCH | oklch(62.72% 0.168 318.6) |
| XYZ | xyz(33.1517, 22.3717, 57.2043) |
| Luminance | 0.2237 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.25
Amethyst
#9B5FC0
ΔE00 4.82
Soft Purple
#A66FB5
ΔE00 5.43
Pinky Purple
#C94CBE
ΔE00 5.95
Deep Lilac
#966EBD
ΔE00 6.53
Pinkish Purple
#D648D7
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B262C8 #78C862
analogous
#7F62C8 #B262C8 #C862AB
triadic
#B262C8 #C8B262 #62C8B2
tetradic
#B262C8 #C87F62 #78C862 #62ABC8
square
#B262C8 #C87F62 #78C862 #62ABC8
split-complementary
#B262C8 #ABC862 #62C87F
monochromatic
#702E82 #973DAF #B262C8 #C88FD8 #DEBDE8
Accessibility & contrast
On white
3.84
#B262C8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.47
#B262C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B262C8
5.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B262C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B262C8 | 1.00 | 3.84 | 5.47 | 5.47 |
| #FFFFFF | 3.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F7DCB
Deuteranopia (green-blind)
#6785C5
Tritanopia (blue-blind)
#B2718C
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #b262c8; /* rgb */ color: rgb(178, 98, 200); /* oklch */ color: oklch(62.7% 0.168 318.6);
Tailwind
colors: {
custom: {
50: '#cb91d9',
500: '#b262c8',
950: '#000000',
},
}SCSS
$custom: #b262c8; $custom-light: #cb91d9; $custom-dark: #000000;
JSON
{
"hex": "#b262c8",
"rgb": {
"r": 178,
"g": 98,
"b": 200
},
"hsl": {
"h": 287.059,
"s": 48.113,
"l": 58.431
},
"oklch": {
"l": 0.62724,
"c": 0.16783,
"h": 318.6
},
"luminance": 0.2237
}Semantic roles & 50–950 ramp
primary
#B262C8
secondary
#B7D7AF
accent
#D8506D
background
#FCF9FD
surface
#F9F1FA
border
#D2CBD3
text
#140D14
muted
#827E83