#5F37D7#5F37D7

#5F37D7 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.226 H 286.0°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5F37D7
RGBrgb(95, 55, 215)
HSLhsl(255, 67%, 53%)
HSVhsv(255, 74%, 84%)
CMYKcmyk(55.8%, 74.4%, 0%, 15.7%)
CIE-LABlab(37.97, 56.34, -75.57)
CIE-LCHlch(37.97, 94.26, 306.71°)
OKLaboklab(49.04% 0.0625 -0.2176)
OKLCHoklch(49.04% 0.226 286)
XYZxyz(18.3476, 10.0705, 65.2538)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37D7 #AFD737
analogous
#375FD7 #5F37D7 #AF37D7
triadic
#5F37D7 #D75F37 #37D75F
tetradic
#5F37D7 #D7375F #AFD737 #37D7AF
square
#5F37D7 #D7375F #AFD737 #37D7AF
split-complementary
#5F37D7 #D7AF37 #5FD737
monochromatic
#31197B #4623AE #5F37D7 #886AE1 #B19DEB

Accessibility & contrast

On white

6.97
#5F37D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5F37D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F37D7
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37D7#FFFFFF#000000##FFFFFF
##5F37D71.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDC
Deuteranopia (green-blind)
#0055D4
Tritanopia (blue-blind)
#266485
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f37d7;
/* rgb */ color: rgb(95, 55, 215);
/* oklch */ color: oklch(49.0% 0.226 286.0);
Tailwind
colors: {
  custom: {
    50: '#9972e5',
    500: '#5f37d7',
    950: '#000000',
  },
}
SCSS
$custom: #5f37d7;
$custom-light: #9972e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37d7",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 215
  },
  "hsl": {
    "h": 255,
    "s": 66.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49035,
    "c": 0.22637,
    "h": 286
  },
  "luminance": 0.10072
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F37D7

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

Preview Lab → · Contrast checker → · Palette generator →

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