#5F39CF#5F39CF

#5F39CF is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.215 H 287.0°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5F39CF
RGBrgb(95, 57, 207)
HSLhsl(255, 61%, 52%)
HSVhsv(255, 72%, 81%)
CMYKcmyk(54.1%, 72.5%, 0%, 18.8%)
CIE-LABlab(37.60, 53.12, -71.57)
CIE-LCHlch(37.60, 89.12, 306.58°)
OKLaboklab(48.55% 0.0629 -0.2058)
OKLCHoklch(48.55% 0.215 287)
XYZxyz(17.4416, 9.8632, 60.0041)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39CF #A9CF39
analogous
#395ECF #5F39CF #AA39CF
triadic
#5F39CF #CF5F39 #39CF5F
tetradic
#5F39CF #CF395E #A9CF39 #39CFAA
square
#5F39CF #CF395E #A9CF39 #39CFAA
split-complementary
#5F39CF #CFAA39 #5ECF39
monochromatic
#321C72 #4728A3 #5F39CF #876ADB #AF9CE7

Accessibility & contrast

On white

7.06
#5F39CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5F39CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39CF
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39CF#FFFFFF#000000##FFFFFF
##5F39CF1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#2F6281
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f39cf;
/* rgb */ color: rgb(95, 57, 207);
/* oklch */ color: oklch(48.6% 0.215 287.0);
Tailwind
colors: {
  custom: {
    50: '#9773df',
    500: '#5f39cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f39cf;
$custom-light: #9773df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39cf",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 207
  },
  "hsl": {
    "h": 255.2,
    "s": 60.976,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48552,
    "c": 0.21524,
    "h": 287
  },
  "luminance": 0.09864
}

Semantic roles & 50–950 ramp

primary
#5F39CF
secondary
#C2D391
accent
#E444BB
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F39CF

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

Preview Lab → · Contrast checker → · Palette generator →

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