#5F37BE#5F37BE

#5F37BE is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.198 H 290.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5F37BE
RGBrgb(95, 55, 190)
HSLhsl(258, 55%, 48%)
HSVhsv(258, 71%, 75%)
CMYKcmyk(50%, 71.1%, 0%, 25.5%)
CIE-LABlab(35.76, 49.36, -64.66)
CIE-LCHlch(35.76, 81.35, 307.36°)
OKLaboklab(46.79% 0.0682 -0.1856)
OKLCHoklch(46.79% 0.198 290.2)
XYZxyz(15.3771, 8.8823, 49.6095)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37BE #96BE37
analogous
#3752BE #5F37BE #A237BE
triadic
#5F37BE #BE5F37 #37BE5F
tetradic
#5F37BE #BE3752 #96BE37 #37BEA2
square
#5F37BE #BE3752 #96BE37 #37BEA2
split-complementary
#5F37BE #BEA237 #52BE37
monochromatic
#301C5F #47298F #5F37BE #8261D1 #A890DF

Accessibility & contrast

On white

7.56
#5F37BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F37BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37BE
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37BE#FFFFFF#000000##FFFFFF
##5F37BE1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#3E5A77
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f37be;
/* rgb */ color: rgb(95, 55, 190);
/* oklch */ color: oklch(46.8% 0.198 290.2);
Tailwind
colors: {
  custom: {
    50: '#9571d3',
    500: '#5f37be',
    950: '#000000',
  },
}
SCSS
$custom: #5f37be;
$custom-light: #9571d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37be",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 190
  },
  "hsl": {
    "h": 257.778,
    "s": 55.102,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46795,
    "c": 0.19773,
    "h": 290.2
  },
  "luminance": 0.08883
}

Semantic roles & 50–950 ramp

primary
#5F37BE
secondary
#B6CA87
accent
#DE49B2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F37BE

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

Preview Lab → · Contrast checker → · Palette generator →

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