#5F37CF#5F37CF

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

Color values

HEX#5F37CF
RGBrgb(95, 55, 207)
HSLhsl(256, 61%, 51%)
HSVhsv(256, 73%, 81%)
CMYKcmyk(54.1%, 73.4%, 0%, 18.8%)
CIE-LABlab(37.24, 54.11, -72.15)
CIE-LCHlch(37.24, 90.18, 306.87°)
OKLaboklab(48.3% 0.0645 -0.2075)
OKLCHoklch(48.3% 0.217 287.3)
XYZxyz(17.3446, 9.6694, 59.9718)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37CF #A7CF37
analogous
#375BCF #5F37CF #AB37CF
triadic
#5F37CF #CF5F37 #37CF5F
tetradic
#5F37CF #CF375B #A7CF37 #37CFAB
square
#5F37CF #CF375B #A7CF37 #37CFAB
split-complementary
#5F37CF #CFAB37 #5BCF37
monochromatic
#321B71 #4727A2 #5F37CF #8668DB #AE9AE7

Accessibility & contrast

On white

7.16
#5F37CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5F37CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37CF
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37CF#FFFFFF#000000##FFFFFF
##5F37CF1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#306180
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f37cf;
/* rgb */ color: rgb(95, 55, 207);
/* oklch */ color: oklch(48.3% 0.217 287.3);
Tailwind
colors: {
  custom: {
    50: '#9872df',
    500: '#5f37cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f37cf;
$custom-light: #9872df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37cf",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 207
  },
  "hsl": {
    "h": 255.789,
    "s": 61.29,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48302,
    "c": 0.21732,
    "h": 287.3
  },
  "luminance": 0.0967
}

Semantic roles & 50–950 ramp

primary
#5F37CF
secondary
#C1D28F
accent
#E443BA
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F37CF

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

Preview Lab → · Contrast checker → · Palette generator →

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