#5D229C#5D229C

#5D229C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.183 H 300.2°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5D229C
RGBrgb(93, 34, 156)
HSLhsl(269, 64%, 37%)
HSVhsv(269, 78%, 61%)
CMYKcmyk(40.4%, 78.2%, 0%, 38.8%)
CIE-LABlab(29.09, 49.96, -55.23)
CIE-LCHlch(29.09, 74.47, 312.13°)
OKLaboklab(41.13% 0.0919 -0.1578)
OKLCHoklch(41.13% 0.183 300.2)
XYZxyz(11.0855, 5.8714, 31.9953)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D229C #619C22
analogous
#22249C #5D229C #9A229C
triadic
#5D229C #9C5D22 #229C5D
tetradic
#5D229C #9C2224 #619C22 #229C9A
square
#5D229C #9C2224 #619C22 #229C9A
split-complementary
#5D229C #9C9A22 #249C22
monochromatic
#210C38 #3F176A #5D229C #7B2DCE #9A5DDC

Accessibility & contrast

On white

9.66
#5D229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5D229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D229C
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D229C#FFFFFF#000000##FFFFFF
##5D229C1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#4E435E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d229c;
/* rgb */ color: rgb(93, 34, 156);
/* oklch */ color: oklch(41.1% 0.183 300.2);
Tailwind
colors: {
  custom: {
    50: '#9164ba',
    500: '#5d229c',
    950: '#000000',
  },
}
SCSS
$custom: #5d229c;
$custom-light: #9164ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d229c",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 269.016,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41134,
    "c": 0.18265,
    "h": 300.2
  },
  "luminance": 0.05872
}

Semantic roles & 50–950 ramp

primary
#5D229C
secondary
#8FC05A
accent
#E74197
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D229C

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

Preview Lab → · Contrast checker → · Palette generator →

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