#5F39CE#5F39CE

#5F39CE is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.5% C 0.214 H 287.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5F39CE
RGBrgb(95, 57, 206)
HSLhsl(255, 60%, 52%)
HSVhsv(255, 72%, 81%)
CMYKcmyk(53.9%, 72.3%, 0%, 19.2%)
CIE-LABlab(37.51, 52.83, -71.13)
CIE-LCHlch(37.51, 88.61, 306.60°)
OKLaboklab(48.46% 0.0631 -0.2046)
OKLCHoklch(48.46% 0.214 287.2)
XYZxyz(17.3197, 9.8145, 59.3623)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39CE #A8CE39
analogous
#395ECE #5F39CE #AA39CE
triadic
#5F39CE #CE5F39 #39CE5F
tetradic
#5F39CE #CE395E #A8CE39 #39CEAA
square
#5F39CE #CE395E #A8CE39 #39CEAA
split-complementary
#5F39CE #CEAA39 #5ECE39
monochromatic
#321C71 #4728A2 #5F39CE #876ADA #AE9BE6

Accessibility & contrast

On white

7.09
#5F39CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5F39CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39CE
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39CE#FFFFFF#000000##FFFFFF
##5F39CE1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#0054CB
Tritanopia (blue-blind)
#316180
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f39ce;
/* rgb */ color: rgb(95, 57, 206);
/* oklch */ color: oklch(48.5% 0.214 287.2);
Tailwind
colors: {
  custom: {
    50: '#9773de',
    500: '#5f39ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f39ce;
$custom-light: #9773de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39ce",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 206
  },
  "hsl": {
    "h": 255.302,
    "s": 60.324,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48462,
    "c": 0.21409,
    "h": 287.2
  },
  "luminance": 0.09815
}

Semantic roles & 50–950 ramp

primary
#5F39CE
secondary
#C1D291
accent
#E344BB
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F39CE

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

Preview Lab → · Contrast checker → · Palette generator →

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