#5F37CE#5F37CE

#5F37CE is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.216 H 287.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5F37CE
RGBrgb(95, 55, 206)
HSLhsl(256, 61%, 51%)
HSVhsv(256, 73%, 81%)
CMYKcmyk(53.9%, 73.3%, 0%, 19.2%)
CIE-LABlab(37.15, 53.83, -71.71)
CIE-LCHlch(37.15, 89.67, 306.89°)
OKLaboklab(48.21% 0.0647 -0.2063)
OKLCHoklch(48.21% 0.216 287.4)
XYZxyz(17.2228, 9.6206, 59.3300)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37CE #A6CE37
analogous
#375ACE #5F37CE #AA37CE
triadic
#5F37CE #CE5F37 #37CE5F
tetradic
#5F37CE #CE375A #A6CE37 #37CEAA
square
#5F37CE #CE375A #A6CE37 #37CEAA
split-complementary
#5F37CE #CEAA37 #5ACE37
monochromatic
#321B6F #4727A0 #5F37CE #8668DA #AE99E6

Accessibility & contrast

On white

7.18
#5F37CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5F37CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37CE
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37CE#FFFFFF#000000##FFFFFF
##5F37CE1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD2
Deuteranopia (green-blind)
#0053CB
Tritanopia (blue-blind)
#316080
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f37ce;
/* rgb */ color: rgb(95, 55, 206);
/* oklch */ color: oklch(48.2% 0.216 287.4);
Tailwind
colors: {
  custom: {
    50: '#9772de',
    500: '#5f37ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f37ce;
$custom-light: #9772de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37ce",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 206
  },
  "hsl": {
    "h": 255.894,
    "s": 60.643,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48212,
    "c": 0.21617,
    "h": 287.4
  },
  "luminance": 0.09622
}

Semantic roles & 50–950 ramp

primary
#5F37CE
secondary
#C0D28F
accent
#E444B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F37CE

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

Preview Lab → · Contrast checker → · Palette generator →

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