#5D2E98#5D2E98

#5D2E98 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.164 H 299.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5D2E98
RGBrgb(93, 46, 152)
HSLhsl(267, 54%, 39%)
HSVhsv(267, 70%, 60%)
CMYKcmyk(38.8%, 69.7%, 0%, 40.4%)
CIE-LABlab(30.75, 43.29, -50.07)
CIE-LCHlch(30.75, 66.19, 310.84°)
OKLaboklab(42.21% 0.0811 -0.1427)
OKLCHoklch(42.21% 0.164 299.6)
XYZxyz(11.1573, 6.5480, 30.3758)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E98 #69982E
analogous
#2E3498 #5D2E98 #922E98
triadic
#5D2E98 #985D2E #2E985D
tetradic
#5D2E98 #982E34 #69982E #2E9892
square
#5D2E98 #982E34 #69982E #2E9892
split-complementary
#5D2E98 #98922E #34982E
monochromatic
#24123A #402069 #5D2E98 #7A3EC5 #9A6DD3

Accessibility & contrast

On white

9.09
#5D2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5D2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E98
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E98#FFFFFF#000000##FFFFFF
##5D2E981.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#50475F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2e98;
/* rgb */ color: rgb(93, 46, 152);
/* oklch */ color: oklch(42.2% 0.164 299.6);
Tailwind
colors: {
  custom: {
    50: '#906ab7',
    500: '#5d2e98',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e98;
$custom-light: #906ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e98",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 266.604,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42212,
    "c": 0.16417,
    "h": 299.6
  },
  "luminance": 0.06548
}

Semantic roles & 50–950 ramp

primary
#5D2E98
secondary
#96BA68
accent
#DD4B9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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