#5F37C2#5F37C2

#5F37C2 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.1% C 0.202 H 289.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5F37C2
RGBrgb(95, 55, 194)
HSLhsl(257, 56%, 49%)
HSVhsv(257, 72%, 76%)
CMYKcmyk(51%, 71.6%, 0%, 23.9%)
CIE-LABlab(36.10, 50.48, -66.45)
CIE-LCHlch(36.10, 83.45, 307.22°)
OKLaboklab(47.14% 0.0674 -0.1908)
OKLCHoklch(47.14% 0.202 289.4)
XYZxyz(15.8203, 9.0596, 51.9436)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37C2 #9AC237
analogous
#3755C2 #5F37C2 #A537C2
triadic
#5F37C2 #C25F37 #37C25F
tetradic
#5F37C2 #C23755 #9AC237 #37C2A5
square
#5F37C2 #C23755 #9AC237 #37C2A5
split-complementary
#5F37C2 #C2A537 #55C237
monochromatic
#301C63 #482992 #5F37C2 #8363D3 #A993E0

Accessibility & contrast

On white

7.47
#5F37C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5F37C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37C2
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37C2#FFFFFF#000000##FFFFFF
##5F37C21.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#3B5C79
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f37c2;
/* rgb */ color: rgb(95, 55, 194);
/* oklch */ color: oklch(47.1% 0.202 289.4);
Tailwind
colors: {
  custom: {
    50: '#9671d6',
    500: '#5f37c2',
    950: '#000000',
  },
}
SCSS
$custom: #5f37c2;
$custom-light: #9671d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37c2",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 257.266,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47143,
    "c": 0.20238,
    "h": 289.4
  },
  "luminance": 0.0906
}

Semantic roles & 50–950 ramp

primary
#5F37C2
secondary
#B8CB89
accent
#DF49B4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F37C2

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

Preview Lab → · Contrast checker → · Palette generator →

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