#5D226A#5D226A

#5D226A is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.2% C 0.130 H 319.9°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#5D226A
RGBrgb(93, 34, 106)
HSLhsl(289, 51%, 27%)
HSVhsv(289, 68%, 42%)
CMYKcmyk(12.3%, 67.9%, 0%, 58.4%)
CIE-LABlab(25.30, 38.23, -29.98)
CIE-LCHlch(25.30, 48.58, 321.89°)
OKLaboklab(37.25% 0.0996 -0.0837)
OKLCHoklch(37.25% 0.13 319.9)
XYZxyz(7.6874, 4.5122, 14.0989)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D226A #2F6A22
analogous
#39226A #5D226A #6A2253
triadic
#5D226A #6A5D22 #226A5D
tetradic
#5D226A #6A3922 #2F6A22 #22536A
square
#5D226A #6A3922 #2F6A22 #22536A
split-complementary
#5D226A #536A22 #226A39
monochromatic
#140717 #34133C #5D226A #863198 #AC44C3

Accessibility & contrast

On white

11.04
#5D226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5D226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D226A
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D226A#FFFFFF#000000##FFFFFF
##5D226A1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D386C
Deuteranopia (green-blind)
#283E68
Tritanopia (blue-blind)
#5D2E43
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d226a;
/* rgb */ color: rgb(93, 34, 106);
/* oklch */ color: oklch(37.2% 0.130 319.9);
Tailwind
colors: {
  custom: {
    50: '#8d6295',
    500: '#5d226a',
    950: '#000000',
  },
}
SCSS
$custom: #5d226a;
$custom-light: #8d6295;
$custom-dark: #000000;
JSON
{
  "hex": "#5d226a",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 289.167,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.37249,
    "c": 0.13013,
    "h": 319.9
  },
  "luminance": 0.04512
}

Semantic roles & 50–950 ramp

primary
#5D226A
secondary
#599E4A
accent
#DB4D67
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5D226A

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

Preview Lab → · Contrast checker → · Palette generator →

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