#5F37D6#5F37D6

#5F37D6 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.225 H 286.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5F37D6
RGBrgb(95, 55, 214)
HSLhsl(255, 66%, 53%)
HSVhsv(255, 74%, 84%)
CMYKcmyk(55.6%, 74.3%, 0%, 16.1%)
CIE-LABlab(37.88, 56.07, -75.15)
CIE-LCHlch(37.88, 93.76, 306.73°)
OKLaboklab(48.94% 0.0628 -0.2163)
OKLCHoklch(48.94% 0.225 286.2)
XYZxyz(18.2195, 10.0193, 64.5792)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37D6 #AED637
analogous
#375FD6 #5F37D6 #AE37D6
triadic
#5F37D6 #D65F37 #37D65F
tetradic
#5F37D6 #D6375F #AED637 #37D6AE
square
#5F37D6 #D6375F #AED637 #37D6AE
split-complementary
#5F37D6 #D6AE37 #5FD637
monochromatic
#31197A #4623AC #5F37D6 #886AE0 #B09DEB

Accessibility & contrast

On white

6.99
#5F37D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5F37D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F37D6
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37D6#FFFFFF#000000##FFFFFF
##5F37D61.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDB
Deuteranopia (green-blind)
#0054D3
Tritanopia (blue-blind)
#276384
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f37d6;
/* rgb */ color: rgb(95, 55, 214);
/* oklch */ color: oklch(48.9% 0.225 286.2);
Tailwind
colors: {
  custom: {
    50: '#9972e4',
    500: '#5f37d6',
    950: '#000000',
  },
}
SCSS
$custom: #5f37d6;
$custom-light: #9972e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37d6",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 214
  },
  "hsl": {
    "h": 255.094,
    "s": 65.975,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48942,
    "c": 0.22524,
    "h": 286.2
  },
  "luminance": 0.1002
}

Semantic roles & 50–950 ramp

primary
#5F37D6
secondary
#C6D792
accent
#E93FBE
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F37D6

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

Preview Lab → · Contrast checker → · Palette generator →

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