#5F37B7#5F37B7

#5F37B7 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.190 H 291.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5F37B7
RGBrgb(95, 55, 183)
HSLhsl(259, 54%, 47%)
HSVhsv(259, 70%, 72%)
CMYKcmyk(48.1%, 69.9%, 0%, 28.2%)
CIE-LABlab(35.17, 47.40, -61.49)
CIE-LCHlch(35.17, 77.64, 307.63°)
OKLaboklab(46.2% 0.0696 -0.1763)
OKLCHoklch(46.2% 0.19 291.5)
XYZxyz(14.6303, 8.5836, 45.6765)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37B7 #8FB737
analogous
#374FB7 #5F37B7 #9F37B7
triadic
#5F37B7 #B75F37 #37B75F
tetradic
#5F37B7 #B7374F #8FB737 #37B79F
square
#5F37B7 #B7374F #8FB737 #37B79F
split-complementary
#5F37B7 #B79F37 #4FB737
monochromatic
#2E1B59 #472988 #5F37B7 #805DCE #A58CDC

Accessibility & contrast

On white

7.73
#5F37B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F37B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37B7
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37B7#FFFFFF#000000##FFFFFF
##5F37B71.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#435873
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f37b7;
/* rgb */ color: rgb(95, 55, 183);
/* oklch */ color: oklch(46.2% 0.190 291.5);
Tailwind
colors: {
  custom: {
    50: '#9471ce',
    500: '#5f37b7',
    950: '#000000',
  },
}
SCSS
$custom: #5f37b7;
$custom-light: #9471ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37b7",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 258.75,
    "s": 53.782,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46196,
    "c": 0.18951,
    "h": 291.5
  },
  "luminance": 0.08584
}

Semantic roles & 50–950 ramp

primary
#5F37B7
secondary
#B2C783
accent
#DD4BAF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F37B7

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

Preview Lab → · Contrast checker → · Palette generator →

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