#5D229A#5D229A

#5D229A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.181 H 300.8°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5D229A
RGBrgb(93, 34, 154)
HSLhsl(270, 64%, 37%)
HSVhsv(270, 78%, 60%)
CMYKcmyk(39.6%, 77.9%, 0%, 39.6%)
CIE-LABlab(28.91, 49.46, -54.29)
CIE-LCHlch(28.91, 73.44, 312.33°)
OKLaboklab(40.96% 0.0925 -0.1551)
OKLCHoklch(40.96% 0.181 300.8)
XYZxyz(10.9175, 5.8042, 31.1107)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D229A #5F9A22
analogous
#22239A #5D229A #99229A
triadic
#5D229A #9A5D22 #229A5D
tetradic
#5D229A #9A2223 #5F9A22 #229A99
square
#5D229A #9A2223 #5F9A22 #229A99
split-complementary
#5D229A #9A9922 #239A22
monochromatic
#200C36 #3F1768 #5D229A #7B2DCC #9A5BDB

Accessibility & contrast

On white

9.72
#5D229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5D229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D229A
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D229A#FFFFFF#000000##FFFFFF
##5D229A1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#4F425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d229a;
/* rgb */ color: rgb(93, 34, 154);
/* oklch */ color: oklch(41.0% 0.181 300.8);
Tailwind
colors: {
  custom: {
    50: '#9164b9',
    500: '#5d229a',
    950: '#000000',
  },
}
SCSS
$custom: #5d229a;
$custom-light: #9164b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d229a",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 269.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40959,
    "c": 0.18055,
    "h": 300.8
  },
  "luminance": 0.05804
}

Semantic roles & 50–950 ramp

primary
#5D229A
secondary
#8DBF58
accent
#E74195
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D229A

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

Preview Lab → · Contrast checker → · Palette generator →

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