#5F39CC#5F39CC

#5F39CC is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.212 H 287.5°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5F39CC
RGBrgb(95, 57, 204)
HSLhsl(256, 59%, 51%)
HSVhsv(256, 72%, 80%)
CMYKcmyk(53.4%, 72.1%, 0%, 20%)
CIE-LABlab(37.33, 52.27, -70.26)
CIE-LCHlch(37.33, 87.57, 306.65°)
OKLaboklab(48.28% 0.0636 -0.202)
OKLCHoklch(48.28% 0.212 287.5)
XYZxyz(17.0783, 9.7179, 58.0909)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39CC #A6CC39
analogous
#395CCC #5F39CC #A839CC
triadic
#5F39CC #CC5F39 #39CC5F
tetradic
#5F39CC #CC395C #A6CC39 #39CCA8
square
#5F39CC #CC395C #A6CC39 #39CCA8
split-complementary
#5F39CC #CCA839 #5CCC39
monochromatic
#321C6E #47299F #5F39CC #866AD9 #AE9AE5

Accessibility & contrast

On white

7.13
#5F39CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5F39CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39CC
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39CC#FFFFFF#000000##FFFFFF
##5F39CC1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#0054C9
Tritanopia (blue-blind)
#33607F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f39cc;
/* rgb */ color: rgb(95, 57, 204);
/* oklch */ color: oklch(48.3% 0.212 287.5);
Tailwind
colors: {
  custom: {
    50: '#9773dd',
    500: '#5f39cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f39cc;
$custom-light: #9773dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39cc",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 204
  },
  "hsl": {
    "h": 255.51,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48284,
    "c": 0.21179,
    "h": 287.5
  },
  "luminance": 0.09719
}

Semantic roles & 50–950 ramp

primary
#5F39CC
secondary
#C0D190
accent
#E246BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F39CC

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

Preview Lab → · Contrast checker → · Palette generator →

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