#5F37BB#5F37BB

#5F37BB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.194 H 290.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5F37BB
RGBrgb(95, 55, 187)
HSLhsl(258, 55%, 47%)
HSVhsv(258, 71%, 73%)
CMYKcmyk(49.2%, 70.6%, 0%, 26.7%)
CIE-LABlab(35.50, 48.52, -63.31)
CIE-LCHlch(35.50, 79.76, 307.47°)
OKLaboklab(46.54% 0.0688 -0.1816)
OKLCHoklch(46.54% 0.194 290.7)
XYZxyz(15.0526, 8.7525, 47.9004)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37BB #93BB37
analogous
#3751BB #5F37BB #A137BB
triadic
#5F37BB #BB5F37 #37BB5F
tetradic
#5F37BB #BB3751 #93BB37 #37BBA1
square
#5F37BB #BB3751 #93BB37 #37BBA1
split-complementary
#5F37BB #BBA137 #51BB37
monochromatic
#2F1B5C #47298C #5F37BB #815FD0 #A78EDE

Accessibility & contrast

On white

7.63
#5F37BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5F37BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37BB
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37BB#FFFFFF#000000##FFFFFF
##5F37BB1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#405975
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f37bb;
/* rgb */ color: rgb(95, 55, 187);
/* oklch */ color: oklch(46.5% 0.194 290.7);
Tailwind
colors: {
  custom: {
    50: '#9571d0',
    500: '#5f37bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f37bb;
$custom-light: #9571d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37bb",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 187
  },
  "hsl": {
    "h": 258.182,
    "s": 54.545,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46536,
    "c": 0.19421,
    "h": 290.7
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F37BB

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

Preview Lab → · Contrast checker → · Palette generator →

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