#5D226F#5D226F

#5D226F is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.6% C 0.135 H 317.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5D226F
RGBrgb(93, 34, 111)
HSLhsl(286, 53%, 28%)
HSVhsv(286, 69%, 44%)
CMYKcmyk(16.2%, 69.4%, 0%, 56.5%)
CIE-LABlab(25.62, 39.31, -32.69)
CIE-LCHlch(25.62, 51.13, 320.26°)
OKLaboklab(37.59% 0.0995 -0.0916)
OKLCHoklch(37.59% 0.135 317.4)
XYZxyz(7.9551, 4.6192, 15.5084)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D226F #346F22
analogous
#36226F #5D226F #6F225A
triadic
#5D226F #6F5D22 #226F5D
tetradic
#5D226F #6F3622 #346F22 #225A6F
square
#5D226F #6F3622 #346F22 #225A6F
split-complementary
#5D226F #5A6F22 #226F36
monochromatic
#140717 #361440 #5D226F #84309E #A845C6

Accessibility & contrast

On white

10.92
#5D226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D226F
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D226F#FFFFFF#000000##FFFFFF
##5D226F1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033971
Deuteranopia (green-blind)
#243F6D
Tritanopia (blue-blind)
#5C3045
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d226f;
/* rgb */ color: rgb(93, 34, 111);
/* oklch */ color: oklch(37.6% 0.135 317.4);
Tailwind
colors: {
  custom: {
    50: '#8e6299',
    500: '#5d226f',
    950: '#000000',
  },
}
SCSS
$custom: #5d226f;
$custom-light: #8e6299;
$custom-dark: #000000;
JSON
{
  "hex": "#5d226f",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 285.974,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37587,
    "c": 0.13528,
    "h": 317.4
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#5D226F
secondary
#5FA24A
accent
#DD4B6D
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5D226F

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

Preview Lab → · Contrast checker → · Palette generator →

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