#5F39CD#5F39CD

#5F39CD is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.4% C 0.213 H 287.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5F39CD
RGBrgb(95, 57, 205)
HSLhsl(255, 60%, 51%)
HSVhsv(255, 72%, 80%)
CMYKcmyk(53.7%, 72.2%, 0%, 19.6%)
CIE-LABlab(37.42, 52.55, -70.70)
CIE-LCHlch(37.42, 88.09, 306.62°)
OKLaboklab(48.37% 0.0634 -0.2033)
OKLCHoklch(48.37% 0.213 287.3)
XYZxyz(17.1986, 9.7660, 58.7246)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39CD #A7CD39
analogous
#395DCD #5F39CD #A939CD
triadic
#5F39CD #CD5F39 #39CD5F
tetradic
#5F39CD #CD395D #A7CD39 #39CDA9
square
#5F39CD #CD395D #A7CD39 #39CDA9
split-complementary
#5F39CD #CDA939 #5DCD39
monochromatic
#321C6F #4728A0 #5F39CD #866AD9 #AE9BE6

Accessibility & contrast

On white

7.11
#5F39CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5F39CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39CD
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39CD#FFFFFF#000000##FFFFFF
##5F39CD1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#326180
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f39cd;
/* rgb */ color: rgb(95, 57, 205);
/* oklch */ color: oklch(48.4% 0.213 287.3);
Tailwind
colors: {
  custom: {
    50: '#9773dd',
    500: '#5f39cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f39cd;
$custom-light: #9773dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39cd",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 205
  },
  "hsl": {
    "h": 255.405,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48373,
    "c": 0.21293,
    "h": 287.3
  },
  "luminance": 0.09767
}

Semantic roles & 50–950 ramp

primary
#5F39CD
secondary
#C1D290
accent
#E345BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F39CD

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

Preview Lab → · Contrast checker → · Palette generator →

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