#5F37C0#5F37C0

#5F37C0 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.200 H 289.8°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5F37C0
RGBrgb(95, 55, 192)
HSLhsl(258, 55%, 48%)
HSVhsv(258, 71%, 75%)
CMYKcmyk(50.5%, 71.4%, 0%, 24.7%)
CIE-LABlab(35.93, 49.92, -65.56)
CIE-LCHlch(35.93, 82.40, 307.29°)
OKLaboklab(46.97% 0.0678 -0.1882)
OKLCHoklch(46.97% 0.2 289.8)
XYZxyz(15.5972, 8.9704, 50.7686)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37C0 #98C037
analogous
#3753C0 #5F37C0 #A337C0
triadic
#5F37C0 #C05F37 #37C05F
tetradic
#5F37C0 #C03753 #98C037 #37C0A3
square
#5F37C0 #C03753 #98C037 #37C0A3
split-complementary
#5F37C0 #C0A337 #53C037
monochromatic
#301C61 #472990 #5F37C0 #8362D2 #A892E0

Accessibility & contrast

On white

7.52
#5F37C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F37C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37C0
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37C0#FFFFFF#000000##FFFFFF
##5F37C01.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#3D5B78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f37c0;
/* rgb */ color: rgb(95, 55, 192);
/* oklch */ color: oklch(47.0% 0.200 289.8);
Tailwind
colors: {
  custom: {
    50: '#9571d4',
    500: '#5f37c0',
    950: '#000000',
  },
}
SCSS
$custom: #5f37c0;
$custom-light: #9571d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37c0",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 192
  },
  "hsl": {
    "h": 257.518,
    "s": 55.466,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46969,
    "c": 0.20006,
    "h": 289.8
  },
  "luminance": 0.08971
}

Semantic roles & 50–950 ramp

primary
#5F37C0
secondary
#B7CB88
accent
#DF49B3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F37C0

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

Preview Lab → · Contrast checker → · Palette generator →

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