#5D229B#5D229B

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

Color values

HEX#5D229B
RGBrgb(93, 34, 155)
HSLhsl(269, 64%, 37%)
HSVhsv(269, 78%, 61%)
CMYKcmyk(40%, 78.1%, 0%, 39.2%)
CIE-LABlab(29.00, 49.71, -54.76)
CIE-LCHlch(29.00, 73.96, 312.23°)
OKLaboklab(41.05% 0.0922 -0.1565)
OKLCHoklch(41.05% 0.182 300.5)
XYZxyz(11.0012, 5.8377, 31.5512)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D229B #609B22
analogous
#22249B #5D229B #9A229B
triadic
#5D229B #9B5D22 #229B5D
tetradic
#5D229B #9B2224 #609B22 #229B9A
square
#5D229B #9B2224 #609B22 #229B9A
split-complementary
#5D229B #9B9A22 #249B22
monochromatic
#210C37 #3F1769 #5D229B #7B2DCD #9A5CDB

Accessibility & contrast

On white

9.69
#5D229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D229B
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D229B#FFFFFF#000000##FFFFFF
##5D229B1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4F425E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d229b;
/* rgb */ color: rgb(93, 34, 155);
/* oklch */ color: oklch(41.0% 0.182 300.5);
Tailwind
colors: {
  custom: {
    50: '#9164b9',
    500: '#5d229b',
    950: '#000000',
  },
}
SCSS
$custom: #5d229b;
$custom-light: #9164b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d229b",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 269.256,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41046,
    "c": 0.18161,
    "h": 300.5
  },
  "luminance": 0.05838
}

Semantic roles & 50–950 ramp

primary
#5D229B
secondary
#8EC059
accent
#E74196
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D229B

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

Preview Lab → · Contrast checker → · Palette generator →

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