#5F3DEE#5F3DEE

#5F3DEE is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.9% C 0.246 H 282.4°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5F3DEE
RGBrgb(95, 61, 238)
HSLhsl(252, 84%, 59%)
HSVhsv(252, 74%, 93%)
CMYKcmyk(60.1%, 74.4%, 0%, 6.7%)
CIE-LABlab(41.12, 59.91, -83.49)
CIE-LCHlch(41.12, 102.77, 305.66°)
OKLaboklab(51.9% 0.0529 -0.2408)
OKLCHoklch(51.9% 0.246 282.4)
XYZxyz(21.8159, 11.9419, 82.0278)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DEE #CCEE3D
analogous
#3D73EE #5F3DEE #B73DEE
triadic
#5F3DEE #EE5F3D #3DEE5F
tetradic
#5F3DEE #EE3D73 #CCEE3D #3DEEB7
square
#5F3DEE #EE3D73 #CCEE3D #3DEEB7
split-complementary
#5F3DEE #EEB73D #73EE3D
monochromatic
#2B0EA2 #3913DB #5F3DEE #8D75F3 #BCAEF8

Accessibility & contrast

On white

6.20
#5F3DEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5F3DEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DEE
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DEE#FFFFFF#000000##FFFFFF
##5F3DEE1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067F3
Deuteranopia (green-blind)
#005BEB
Tritanopia (blue-blind)
#007093
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f3dee;
/* rgb */ color: rgb(95, 61, 238);
/* oklch */ color: oklch(51.9% 0.246 282.4);
Tailwind
colors: {
  custom: {
    50: '#9c77f5',
    500: '#5f3dee',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dee;
$custom-light: #9c77f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dee",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 238
  },
  "hsl": {
    "h": 251.525,
    "s": 83.886,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51897,
    "c": 0.24649,
    "h": 282.4
  },
  "luminance": 0.11943
}

Semantic roles & 50–950 ramp

primary
#5F3DEE
secondary
#D9E6A0
accent
#FA2ED3
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5F3DEE

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5F3DEE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva