#5F37D2#5F37D2

#5F37D2 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.221 H 286.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5F37D2
RGBrgb(95, 55, 210)
HSLhsl(255, 63%, 52%)
HSVhsv(255, 74%, 82%)
CMYKcmyk(54.8%, 73.8%, 0%, 17.6%)
CIE-LABlab(37.51, 54.95, -73.44)
CIE-LCHlch(37.51, 91.72, 306.81°)
OKLaboklab(48.58% 0.0638 -0.2113)
OKLCHoklch(48.58% 0.221 286.8)
XYZxyz(17.7149, 9.8175, 61.9218)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37D2 #AAD237
analogous
#375DD2 #5F37D2 #AD37D2
triadic
#5F37D2 #D25F37 #37D25F
tetradic
#5F37D2 #D2375D #AAD237 #37D2AD
square
#5F37D2 #D2375D #AAD237 #37D2AD
split-complementary
#5F37D2 #D2AD37 #5DD237
monochromatic
#311A74 #4725A6 #5F37D2 #8769DD #AF9BE8

Accessibility & contrast

On white

7.09
#5F37D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5F37D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F37D2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37D2#FFFFFF#000000##FFFFFF
##5F37D21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD6
Deuteranopia (green-blind)
#0054CF
Tritanopia (blue-blind)
#2C6282
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f37d2;
/* rgb */ color: rgb(95, 55, 210);
/* oklch */ color: oklch(48.6% 0.221 286.8);
Tailwind
colors: {
  custom: {
    50: '#9872e1',
    500: '#5f37d2',
    950: '#000000',
  },
}
SCSS
$custom: #5f37d2;
$custom-light: #9872e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37d2",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 210
  },
  "hsl": {
    "h": 255.484,
    "s": 63.265,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48575,
    "c": 0.22072,
    "h": 286.8
  },
  "luminance": 0.09818
}

Semantic roles & 50–950 ramp

primary
#5F37D2
secondary
#C3D490
accent
#E641BC
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #5F37D2

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

Preview Lab → · Contrast checker → · Palette generator →

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