#5F37BC#5F37BC

#5F37BC is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.195 H 290.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5F37BC
RGBrgb(95, 55, 188)
HSLhsl(258, 55%, 48%)
HSVhsv(258, 71%, 74%)
CMYKcmyk(49.5%, 70.7%, 0%, 26.3%)
CIE-LABlab(35.59, 48.80, -63.76)
CIE-LCHlch(35.59, 80.29, 307.43°)
OKLaboklab(46.62% 0.0686 -0.1829)
OKLCHoklch(46.62% 0.195 290.6)
XYZxyz(15.1600, 8.7955, 48.4661)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37BC #94BC37
analogous
#3751BC #5F37BC #A137BC
triadic
#5F37BC #BC5F37 #37BC5F
tetradic
#5F37BC #BC3751 #94BC37 #37BCA1
square
#5F37BC #BC3751 #94BC37 #37BCA1
split-complementary
#5F37BC #BCA137 #51BC37
monochromatic
#2F1B5D #47298D #5F37BC #8260D0 #A78FDE

Accessibility & contrast

On white

7.61
#5F37BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5F37BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37BC
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37BC#FFFFFF#000000##FFFFFF
##5F37BC1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#405976
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f37bc;
/* rgb */ color: rgb(95, 55, 188);
/* oklch */ color: oklch(46.6% 0.195 290.6);
Tailwind
colors: {
  custom: {
    50: '#9571d1',
    500: '#5f37bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f37bc;
$custom-light: #9571d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37bc",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 258.045,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46622,
    "c": 0.19539,
    "h": 290.6
  },
  "luminance": 0.08796
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F37BC

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

Preview Lab → · Contrast checker → · Palette generator →

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