#5D229D#5D229D

#5D229D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.184 H 299.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5D229D
RGBrgb(93, 34, 157)
HSLhsl(269, 64%, 37%)
HSVhsv(269, 78%, 62%)
CMYKcmyk(40.8%, 78.3%, 0%, 38.4%)
CIE-LABlab(29.17, 50.21, -55.70)
CIE-LCHlch(29.17, 74.99, 312.03°)
OKLaboklab(41.22% 0.0916 -0.1592)
OKLCHoklch(41.22% 0.184 299.9)
XYZxyz(11.1705, 5.9054, 32.4431)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D229D #629D22
analogous
#22259D #5D229D #9A229D
triadic
#5D229D #9D5D22 #229D5D
tetradic
#5D229D #9D2225 #629D22 #229D9A
square
#5D229D #9D2225 #629D22 #229D9A
split-complementary
#5D229D #9D9A22 #259D22
monochromatic
#210C38 #3F176B #5D229D #7B2DCF #9A5DDC

Accessibility & contrast

On white

9.63
#5D229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5D229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D229D
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D229D#FFFFFF#000000##FFFFFF
##5D229D1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#4E435F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d229d;
/* rgb */ color: rgb(93, 34, 157);
/* oklch */ color: oklch(41.2% 0.184 299.9);
Tailwind
colors: {
  custom: {
    50: '#9164bb',
    500: '#5d229d',
    950: '#000000',
  },
}
SCSS
$custom: #5d229d;
$custom-light: #9164bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d229d",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 268.78,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41221,
    "c": 0.18371,
    "h": 299.9
  },
  "luminance": 0.05906
}

Semantic roles & 50–950 ramp

primary
#5D229D
secondary
#8FC15A
accent
#E74097
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D229D

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

Preview Lab → · Contrast checker → · Palette generator →

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