#5F37CA#5F37CA

#5F37CA is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.9% C 0.212 H 288.1°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5F37CA
RGBrgb(95, 55, 202)
HSLhsl(256, 58%, 50%)
HSVhsv(256, 73%, 79%)
CMYKcmyk(53%, 72.8%, 0%, 20.8%)
CIE-LABlab(36.80, 52.71, -69.97)
CIE-LCHlch(36.80, 87.61, 306.99°)
OKLaboklab(47.85% 0.0656 -0.2012)
OKLCHoklch(47.85% 0.212 288.1)
XYZxyz(16.7430, 9.4287, 56.8034)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37CA #A2CA37
analogous
#3758CA #5F37CA #A937CA
triadic
#5F37CA #CA5F37 #37CA5F
tetradic
#5F37CA #CA3758 #A2CA37 #37CAA9
square
#5F37CA #CA3758 #A2CA37 #37CAA9
split-complementary
#5F37CA #CAA937 #58CA37
monochromatic
#311C6A #48299B #5F37CA #8667D7 #AC98E4

Accessibility & contrast

On white

7.28
#5F37CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5F37CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37CA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37CA#FFFFFF#000000##FFFFFF
##5F37CA1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#355F7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f37ca;
/* rgb */ color: rgb(95, 55, 202);
/* oklch */ color: oklch(47.9% 0.212 288.1);
Tailwind
colors: {
  custom: {
    50: '#9772db',
    500: '#5f37ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f37ca;
$custom-light: #9772db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37ca",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 256.327,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47852,
    "c": 0.2116,
    "h": 288.1
  },
  "luminance": 0.0943
}

Semantic roles & 50–950 ramp

primary
#5F37CA
secondary
#BDCF8E
accent
#E146B7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F37CA

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

Preview Lab → · Contrast checker → · Palette generator →

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