#6138CF#6138CF
#6138CF is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.216 H 287.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).
Color values
| HEX | #6138CF |
|---|---|
| RGB | rgb(97, 56, 207) |
| HSL | hsl(256, 61%, 52%) |
| HSV | hsv(256, 73%, 81%) |
| CMYK | cmyk(53.1%, 72.9%, 0%, 18.8%) |
| CIE-LAB | lab(37.62, 53.91, -71.53) |
| CIE-LCH | lch(37.62, 89.56, 307.00°) |
| OKLab | oklab(48.61% 0.0666 -0.2057) |
| OKLCH | oklch(48.61% 0.216 287.9) |
| XYZ | xyz(17.6031, 9.8739, 59.9977) |
| Luminance | 0.0988 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blurple
#5539CC
ΔE00 1.78
Bluey Purple
#6241C7
ΔE00 2.16
Blue With A Hint Of Purple
#533CC6
ΔE00 2.51
Burple
#6832E3
ΔE00 2.73
Purpley Blue
#5F34E7
ΔE00 2.94
Purple Blue
#5D21D0
ΔE00 3.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6138CF #A6CF38
analogous
#385BCF #6138CF #AC38CF
triadic
#6138CF #CF6138 #38CF61
tetradic
#6138CF #CF385B #A6CF38 #38CFAC
square
#6138CF #CF385B #A6CF38 #38CFAC
split-complementary
#6138CF #CFAC38 #5BCF38
monochromatic
#331B71 #4927A3 #6138CF #8869DB #AF9BE7
Accessibility & contrast
On white
7.06
#6138CF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#6138CF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6138CF
7.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6138CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6138CF | 1.00 | 7.06 | 2.97 | 7.06 |
| #FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#356180
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #6138cf; /* rgb */ color: rgb(97, 56, 207); /* oklch */ color: oklch(48.6% 0.216 287.9);
Tailwind
colors: {
custom: {
50: '#9973df',
500: '#6138cf',
950: '#000000',
},
}SCSS
$custom: #6138cf; $custom-light: #9973df; $custom-dark: #000000;
JSON
{
"hex": "#6138cf",
"rgb": {
"r": 97,
"g": 56,
"b": 207
},
"hsl": {
"h": 256.291,
"s": 61.134,
"l": 51.569
},
"oklch": {
"l": 0.48612,
"c": 0.21617,
"h": 287.9
},
"luminance": 0.09875
}Semantic roles & 50–950 ramp
primary
#6138CF
secondary
#C1D390
accent
#E444B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83