#5F37CC#5F37CC

#5F37CC is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.214 H 287.7°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5F37CC
RGBrgb(95, 55, 204)
HSLhsl(256, 59%, 51%)
HSVhsv(256, 73%, 80%)
CMYKcmyk(53.4%, 73%, 0%, 20%)
CIE-LABlab(36.97, 53.27, -70.85)
CIE-LCHlch(36.97, 88.64, 306.94°)
OKLaboklab(48.03% 0.0652 -0.2037)
OKLCHoklch(48.03% 0.214 287.7)
XYZxyz(16.9814, 9.5240, 58.0586)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37CC #A4CC37
analogous
#3759CC #5F37CC #A937CC
triadic
#5F37CC #CC5F37 #37CC5F
tetradic
#5F37CC #CC3759 #A4CC37 #37CCA9
square
#5F37CC #CC3759 #A4CC37 #37CCA9
split-complementary
#5F37CC #CCA937 #59CC37
monochromatic
#321C6D #48289E #5F37CC #8668D8 #AD99E5

Accessibility & contrast

On white

7.23
#5F37CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F37CC
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37CC#FFFFFF#000000##FFFFFF
##5F37CC1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#33607F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f37cc;
/* rgb */ color: rgb(95, 55, 204);
/* oklch */ color: oklch(48.0% 0.214 287.7);
Tailwind
colors: {
  custom: {
    50: '#9772dd',
    500: '#5f37cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f37cc;
$custom-light: #9772dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37cc",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 256.107,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48031,
    "c": 0.21389,
    "h": 287.7
  },
  "luminance": 0.09525
}

Semantic roles & 50–950 ramp

primary
#5F37CC
secondary
#BFD08E
accent
#E345B8
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F37CC

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

Preview Lab → · Contrast checker → · Palette generator →

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