#5F37D0#5F37D0

#5F37D0 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.218 H 287.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5F37D0
RGBrgb(95, 55, 208)
HSLhsl(256, 62%, 52%)
HSVhsv(256, 74%, 82%)
CMYKcmyk(54.3%, 73.6%, 0%, 18.4%)
CIE-LABlab(37.33, 54.39, -72.58)
CIE-LCHlch(37.33, 90.70, 306.85°)
OKLaboklab(48.39% 0.0642 -0.2088)
OKLCHoklch(48.39% 0.218 287.1)
XYZxyz(17.4673, 9.7184, 60.6177)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37D0 #A8D037
analogous
#375CD0 #5F37D0 #AB37D0
triadic
#5F37D0 #D05F37 #37D05F
tetradic
#5F37D0 #D0375C #A8D037 #37D0AB
square
#5F37D0 #D0375C #A8D037 #37D0AB
split-complementary
#5F37D0 #D0AB37 #5CD037
monochromatic
#321B72 #4726A3 #5F37D0 #8769DC #AE9AE7

Accessibility & contrast

On white

7.13
#5F37D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5F37D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37D0
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37D0#FFFFFF#000000##FFFFFF
##5F37D01.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD4
Deuteranopia (green-blind)
#0054CD
Tritanopia (blue-blind)
#2F6181
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f37d0;
/* rgb */ color: rgb(95, 55, 208);
/* oklch */ color: oklch(48.4% 0.218 287.1);
Tailwind
colors: {
  custom: {
    50: '#9872e0',
    500: '#5f37d0',
    950: '#000000',
  },
}
SCSS
$custom: #5f37d0;
$custom-light: #9872e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37d0",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 208
  },
  "hsl": {
    "h": 255.686,
    "s": 61.943,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48393,
    "c": 0.21845,
    "h": 287.1
  },
  "luminance": 0.09719
}

Semantic roles & 50–950 ramp

primary
#5F37D0
secondary
#C1D390
accent
#E543BB
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F37D0

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

Preview Lab → · Contrast checker → · Palette generator →

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