#5F39C8#5F39C8

#5F39C8 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.207 H 288.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5F39C8
RGBrgb(95, 57, 200)
HSLhsl(256, 57%, 50%)
HSVhsv(256, 72%, 78%)
CMYKcmyk(52.5%, 71.5%, 0%, 21.6%)
CIE-LABlab(36.98, 51.14, -68.51)
CIE-LCHlch(36.98, 85.49, 306.74°)
OKLaboklab(47.93% 0.0644 -0.1969)
OKLCHoklch(47.93% 0.207 288.1)
XYZxyz(16.6047, 9.5285, 55.5966)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39C8 #A2C839
analogous
#395AC8 #5F39C8 #A639C8
triadic
#5F39C8 #C85F39 #39C85F
tetradic
#5F39C8 #C8395A #A2C839 #39C8A6
square
#5F39C8 #C8395A #A2C839 #39C8A6
split-complementary
#5F39C8 #C8A639 #5AC839
monochromatic
#311D69 #482B99 #5F39C8 #8669D5 #AC99E3

Accessibility & contrast

On white

7.23
#5F39C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F39C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39C8
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39C8#FFFFFF#000000##FFFFFF
##5F39C81.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#365F7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f39c8;
/* rgb */ color: rgb(95, 57, 200);
/* oklch */ color: oklch(47.9% 0.207 288.1);
Tailwind
colors: {
  custom: {
    50: '#9673da',
    500: '#5f39c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f39c8;
$custom-light: #9673da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39c8",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 200
  },
  "hsl": {
    "h": 255.944,
    "s": 56.522,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4793,
    "c": 0.20714,
    "h": 288.1
  },
  "luminance": 0.09529
}

Semantic roles & 50–950 ramp

primary
#5F39C8
secondary
#BDCE8F
accent
#E048B7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F39C8

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

Preview Lab → · Contrast checker → · Palette generator →

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