#5F37BA#5F37BA

#5F37BA is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.193 H 290.9°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5F37BA
RGBrgb(95, 55, 186)
HSLhsl(258, 54%, 47%)
HSVhsv(258, 70%, 73%)
CMYKcmyk(48.9%, 70.4%, 0%, 27.1%)
CIE-LABlab(35.42, 48.24, -62.86)
CIE-LCHlch(35.42, 79.23, 307.50°)
OKLaboklab(46.45% 0.069 -0.1803)
OKLCHoklch(46.45% 0.193 290.9)
XYZxyz(14.9459, 8.7099, 47.3385)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37BA #92BA37
analogous
#3750BA #5F37BA #A137BA
triadic
#5F37BA #BA5F37 #37BA5F
tetradic
#5F37BA #BA3750 #92BA37 #37BAA1
square
#5F37BA #BA3750 #92BA37 #37BAA1
split-complementary
#5F37BA #BAA137 #50BA37
monochromatic
#2F1B5C #47298B #5F37BA #815FD0 #A68EDE

Accessibility & contrast

On white

7.66
#5F37BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F37BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37BA
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37BA#FFFFFF#000000##FFFFFF
##5F37BA1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#415974
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f37ba;
/* rgb */ color: rgb(95, 55, 186);
/* oklch */ color: oklch(46.5% 0.193 290.9);
Tailwind
colors: {
  custom: {
    50: '#9571d0',
    500: '#5f37ba',
    950: '#000000',
  },
}
SCSS
$custom: #5f37ba;
$custom-light: #9571d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37ba",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 258.321,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46451,
    "c": 0.19304,
    "h": 290.9
  },
  "luminance": 0.0871
}

Semantic roles & 50–950 ramp

primary
#5F37BA
secondary
#B4C885
accent
#DE4AB1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F37BA

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

Preview Lab → · Contrast checker → · Palette generator →

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