#5D2E99#5D2E99

#5D2E99 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.165 H 299.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5D2E99
RGBrgb(93, 46, 153)
HSLhsl(266, 54%, 39%)
HSVhsv(266, 70%, 60%)
CMYKcmyk(39.2%, 69.9%, 0%, 40%)
CIE-LABlab(30.83, 43.55, -50.55)
CIE-LCHlch(30.83, 66.73, 310.74°)
OKLaboklab(42.29% 0.0809 -0.1442)
OKLCHoklch(42.29% 0.165 299.3)
XYZxyz(11.2395, 6.5809, 30.8089)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E99 #6A992E
analogous
#2E3599 #5D2E99 #932E99
triadic
#5D2E99 #995D2E #2E995D
tetradic
#5D2E99 #992E35 #6A992E #2E9993
square
#5D2E99 #992E35 #6A992E #2E9993
split-complementary
#5D2E99 #99932E #35992E
monochromatic
#24123B #40206A #5D2E99 #7A3FC5 #9B6ED3

Accessibility & contrast

On white

9.07
#5D2E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5D2E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E99
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E99#FFFFFF#000000##FFFFFF
##5D2E991.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#4F4760
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d2e99;
/* rgb */ color: rgb(93, 46, 153);
/* oklch */ color: oklch(42.3% 0.165 299.3);
Tailwind
colors: {
  custom: {
    50: '#906ab8',
    500: '#5d2e99',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e99;
$custom-light: #906ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e99",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 266.355,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42293,
    "c": 0.16533,
    "h": 299.3
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#5D2E99
secondary
#96BB68
accent
#DD4B9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2E99

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

Preview Lab → · Contrast checker → · Palette generator →

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