#5D37C8#5D37C8

#5D37C8 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.209 H 287.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5D37C8
RGBrgb(93, 55, 200)
HSLhsl(256, 57%, 50%)
HSVhsv(256, 73%, 78%)
CMYKcmyk(53.5%, 72.5%, 0%, 21.6%)
CIE-LABlab(36.42, 51.85, -69.43)
CIE-LCHlch(36.42, 86.66, 306.75°)
OKLaboklab(47.49% 0.0632 -0.1996)
OKLCHoklch(47.49% 0.209 287.6)
XYZxyz(16.3026, 9.2288, 55.5547)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37C8 #A2C837
analogous
#375AC8 #5D37C8 #A537C8
triadic
#5D37C8 #C85D37 #37C85D
tetradic
#5D37C8 #C8375A #A2C837 #37C8A5
square
#5D37C8 #C8375A #A2C837 #37C8A5
split-complementary
#5D37C8 #C8A537 #5AC837
monochromatic
#301D68 #472A98 #5D37C8 #8467D5 #AB97E2

Accessibility & contrast

On white

7.38
#5D37C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5D37C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37C8
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37C8#FFFFFF#000000##FFFFFF
##5D37C81.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#315E7C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d37c8;
/* rgb */ color: rgb(93, 55, 200);
/* oklch */ color: oklch(47.5% 0.209 287.6);
Tailwind
colors: {
  custom: {
    50: '#9572da',
    500: '#5d37c8',
    950: '#000000',
  },
}
SCSS
$custom: #5d37c8;
$custom-light: #9572da;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37c8",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 200
  },
  "hsl": {
    "h": 255.724,
    "s": 56.863,
    "l": 50
  },
  "oklch": {
    "l": 0.47485,
    "c": 0.20942,
    "h": 287.6
  },
  "luminance": 0.0923
}

Semantic roles & 50–950 ramp

primary
#5D37C8
secondary
#BDCE8D
accent
#E048B8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D37C8

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

Preview Lab → · Contrast checker → · Palette generator →

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