#5D2E88#5D2E88

#5D2E88 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.145 H 304.8°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5D2E88
RGBrgb(93, 46, 136)
HSLhsl(271, 49%, 36%)
HSVhsv(271, 66%, 53%)
CMYKcmyk(31.6%, 66.2%, 0%, 46.7%)
CIE-LABlab(29.56, 39.14, -42.15)
CIE-LCHlch(29.56, 57.52, 312.88°)
OKLaboklab(40.98% 0.083 -0.1195)
OKLCHoklch(40.98% 0.145 304.8)
XYZxyz(9.9341, 6.0588, 23.9339)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E88 #59882E
analogous
#302E88 #5D2E88 #882E86
triadic
#5D2E88 #885D2E #2E885D
tetradic
#5D2E88 #88302E #59882E #2E8688
square
#5D2E88 #88302E #59882E #2E8688
split-complementary
#5D2E88 #86882E #2E8830
monochromatic
#1E0F2D #3E1F5A #5D2E88 #7C3DB6 #9A65CB

Accessibility & contrast

On white

9.49
#5D2E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5D2E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E88
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E88#FFFFFF#000000##FFFFFF
##5D2E881.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#154686
Tritanopia (blue-blind)
#554157
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2e88;
/* rgb */ color: rgb(93, 46, 136);
/* oklch */ color: oklch(41.0% 0.145 304.8);
Tailwind
colors: {
  custom: {
    50: '#8e6aab',
    500: '#5d2e88',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e88;
$custom-light: #8e6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e88",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 271.333,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40976,
    "c": 0.14545,
    "h": 304.8
  },
  "luminance": 0.06059
}

Semantic roles & 50–950 ramp

primary
#5D2E88
secondary
#87B260
accent
#D94F91
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D2E88

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

Preview Lab → · Contrast checker → · Palette generator →

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