#5F37BD#5F37BD

#5F37BD is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.197 H 290.4°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5F37BD
RGBrgb(95, 55, 189)
HSLhsl(258, 55%, 48%)
HSVhsv(258, 71%, 74%)
CMYKcmyk(49.7%, 70.9%, 0%, 25.9%)
CIE-LABlab(35.67, 49.08, -64.21)
CIE-LCHlch(35.67, 80.82, 307.39°)
OKLaboklab(46.71% 0.0684 -0.1843)
OKLCHoklch(46.71% 0.197 290.4)
XYZxyz(15.2682, 8.8388, 49.0358)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37BD #95BD37
analogous
#3752BD #5F37BD #A237BD
triadic
#5F37BD #BD5F37 #37BD5F
tetradic
#5F37BD #BD3752 #95BD37 #37BDA2
square
#5F37BD #BD3752 #95BD37 #37BDA2
split-complementary
#5F37BD #BDA237 #52BD37
monochromatic
#2F1B5E #47298E #5F37BD #8260D1 #A790DF

Accessibility & contrast

On white

7.59
#5F37BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5F37BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37BD
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37BD#FFFFFF#000000##FFFFFF
##5F37BD1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#3F5A76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f37bd;
/* rgb */ color: rgb(95, 55, 189);
/* oklch */ color: oklch(46.7% 0.197 290.4);
Tailwind
colors: {
  custom: {
    50: '#9571d2',
    500: '#5f37bd',
    950: '#000000',
  },
}
SCSS
$custom: #5f37bd;
$custom-light: #9571d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37bd",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 189
  },
  "hsl": {
    "h": 257.91,
    "s": 54.918,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46708,
    "c": 0.19656,
    "h": 290.4
  },
  "luminance": 0.08839
}

Semantic roles & 50–950 ramp

primary
#5F37BD
secondary
#B5C986
accent
#DE4AB2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F37BD

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

Preview Lab → · Contrast checker → · Palette generator →

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