#5F37CD#5F37CD

#5F37CD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.215 H 287.6°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5F37CD
RGBrgb(95, 55, 205)
HSLhsl(256, 60%, 51%)
HSVhsv(256, 73%, 80%)
CMYKcmyk(53.7%, 73.2%, 0%, 19.6%)
CIE-LABlab(37.06, 53.55, -71.28)
CIE-LCHlch(37.06, 89.16, 306.92°)
OKLaboklab(48.12% 0.0649 -0.205)
OKLCHoklch(48.12% 0.215 287.6)
XYZxyz(17.1017, 9.5722, 58.6923)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37CD #A5CD37
analogous
#375ACD #5F37CD #AA37CD
triadic
#5F37CD #CD5F37 #37CD5F
tetradic
#5F37CD #CD375A #A5CD37 #37CDAA
square
#5F37CD #CD375A #A5CD37 #37CDAA
split-complementary
#5F37CD #CDAA37 #5ACD37
monochromatic
#321C6E #48289F #5F37CD #8668D9 #AD99E5

Accessibility & contrast

On white

7.21
#5F37CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F37CD
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37CD#FFFFFF#000000##FFFFFF
##5F37CD1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#32607F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f37cd;
/* rgb */ color: rgb(95, 55, 205);
/* oklch */ color: oklch(48.1% 0.215 287.6);
Tailwind
colors: {
  custom: {
    50: '#9772dd',
    500: '#5f37cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f37cd;
$custom-light: #9772dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37cd",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 205
  },
  "hsl": {
    "h": 256,
    "s": 60,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48121,
    "c": 0.21503,
    "h": 287.6
  },
  "luminance": 0.09573
}

Semantic roles & 50–950 ramp

primary
#5F37CD
secondary
#BFD18F
accent
#E345B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F37CD

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

Preview Lab → · Contrast checker → · Palette generator →

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