#5F37C4#5F37C4

#5F37C4 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.3% C 0.205 H 289.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5F37C4
RGBrgb(95, 55, 196)
HSLhsl(257, 56%, 49%)
HSVhsv(257, 72%, 77%)
CMYKcmyk(51.5%, 71.9%, 0%, 23.1%)
CIE-LABlab(36.27, 51.03, -67.34)
CIE-LCHlch(36.27, 84.49, 307.16°)
OKLaboklab(47.32% 0.067 -0.1934)
OKLCHoklch(47.32% 0.205 289.1)
XYZxyz(16.0464, 9.1501, 53.1345)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37C4 #9CC437
analogous
#3756C4 #5F37C4 #A637C4
triadic
#5F37C4 #C45F37 #37C45F
tetradic
#5F37C4 #C43756 #9CC437 #37C4A6
square
#5F37C4 #C43756 #9CC437 #37C4A6
split-complementary
#5F37C4 #C4A637 #56C437
monochromatic
#311C64 #482A94 #5F37C4 #8465D4 #AA94E1

Accessibility & contrast

On white

7.42
#5F37C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5F37C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37C4
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37C4#FFFFFF#000000##FFFFFF
##5F37C41.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#3A5C7A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f37c4;
/* rgb */ color: rgb(95, 55, 196);
/* oklch */ color: oklch(47.3% 0.205 289.1);
Tailwind
colors: {
  custom: {
    50: '#9671d7',
    500: '#5f37c4',
    950: '#000000',
  },
}
SCSS
$custom: #5f37c4;
$custom-light: #9671d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37c4",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 196
  },
  "hsl": {
    "h": 257.021,
    "s": 56.175,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47319,
    "c": 0.20469,
    "h": 289.1
  },
  "luminance": 0.09151
}

Semantic roles & 50–950 ramp

primary
#5F37C4
secondary
#BACC8B
accent
#DF48B5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5F37C4

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

Preview Lab → · Contrast checker → · Palette generator →

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