#5D37CB#5D37CB

#5D37CB is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.213 H 287.1°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5D37CB
RGBrgb(93, 55, 203)
HSLhsl(255, 59%, 51%)
HSVhsv(255, 73%, 80%)
CMYKcmyk(54.2%, 72.9%, 0%, 20.4%)
CIE-LABlab(36.69, 52.70, -70.74)
CIE-LCHlch(36.69, 88.21, 306.68°)
OKLaboklab(47.76% 0.0625 -0.2035)
OKLCHoklch(47.76% 0.213 287.1)
XYZxyz(16.6567, 9.3705, 57.4193)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37CB #A5CB37
analogous
#375BCB #5D37CB #A737CB
triadic
#5D37CB #CB5D37 #37CB5D
tetradic
#5D37CB #CB375B #A5CB37 #37CBA7
square
#5D37CB #CB375B #A5CB37 #37CBA7
split-complementary
#5D37CB #CBA737 #5BCB37
monochromatic
#301C6C #46299C #5D37CB #8468D8 #AC98E4

Accessibility & contrast

On white

7.31
#5D37CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5D37CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37CB
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37CB#FFFFFF#000000##FFFFFF
##5D37CB1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACF
Deuteranopia (green-blind)
#0052C8
Tritanopia (blue-blind)
#2E5F7E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d37cb;
/* rgb */ color: rgb(93, 55, 203);
/* oklch */ color: oklch(47.8% 0.213 287.1);
Tailwind
colors: {
  custom: {
    50: '#9672dc',
    500: '#5d37cb',
    950: '#000000',
  },
}
SCSS
$custom: #5d37cb;
$custom-light: #9672dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37cb",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 203
  },
  "hsl": {
    "h": 255.405,
    "s": 58.73,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47755,
    "c": 0.21287,
    "h": 287.1
  },
  "luminance": 0.09371
}

Semantic roles & 50–950 ramp

primary
#5D37CB
secondary
#BFD08E
accent
#E246BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D37CB

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

Preview Lab → · Contrast checker → · Palette generator →

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