#5F39D2#5F39D2

#5F39D2 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.8% C 0.219 H 286.5°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5F39D2
RGBrgb(95, 57, 210)
HSLhsl(255, 63%, 52%)
HSVhsv(255, 73%, 82%)
CMYKcmyk(54.8%, 72.9%, 0%, 17.6%)
CIE-LABlab(37.86, 53.96, -72.86)
CIE-LCHlch(37.86, 90.67, 306.52°)
OKLaboklab(48.82% 0.0622 -0.2096)
OKLCHoklch(48.82% 0.219 286.5)
XYZxyz(17.8118, 10.0113, 61.9541)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39D2 #ACD239
analogous
#3960D2 #5F39D2 #AC39D2
triadic
#5F39D2 #D25F39 #39D25F
tetradic
#5F39D2 #D23960 #ACD239 #39D2AC
square
#5F39D2 #D23960 #ACD239 #39D2AC
split-complementary
#5F39D2 #D2AC39 #60D239
monochromatic
#311B76 #4626A8 #5F39D2 #876BDD #B09DE9

Accessibility & contrast

On white

6.99
#5F39D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5F39D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F39D2
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39D2#FFFFFF#000000##FFFFFF
##5F39D21.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#0055CF
Tritanopia (blue-blind)
#2C6382
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f39d2;
/* rgb */ color: rgb(95, 57, 210);
/* oklch */ color: oklch(48.8% 0.219 286.5);
Tailwind
colors: {
  custom: {
    50: '#9873e1',
    500: '#5f39d2',
    950: '#000000',
  },
}
SCSS
$custom: #5f39d2;
$custom-light: #9873e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39d2",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 254.902,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48822,
    "c": 0.21868,
    "h": 286.5
  },
  "luminance": 0.10012
}

Semantic roles & 50–950 ramp

primary
#5F39D2
secondary
#C4D592
accent
#E642BD
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F39D2

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

Preview Lab → · Contrast checker → · Palette generator →

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