#5D225E#5D225E

#5D225E is a dark, moderate purple. Relative luminance 0.043; OKLCH L 36.5% C 0.118 H 327.0°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5D225E
RGBrgb(93, 34, 94)
HSLhsl(299, 47%, 25%)
HSVhsv(299, 64%, 37%)
CMYKcmyk(1.1%, 63.8%, 0%, 63.1%)
CIE-LABlab(24.58, 35.75, -23.30)
CIE-LCHlch(24.58, 42.67, 326.90°)
OKLaboklab(36.49% 0.0991 -0.0643)
OKLCHoklch(36.49% 0.118 327)
XYZxyz(7.1065, 4.2798, 11.0393)
Luminance0.0428 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D225E #235E22
analogous
#3F225E #5D225E #5E2241
triadic
#5D225E #5E5D22 #225E5D
tetradic
#5D225E #5E3F22 #235E22 #22415E
square
#5D225E #5E3F22 #235E22 #22415E
split-complementary
#5D225E #415E22 #225E3F
monochromatic
#160816 #311231 #5D225E #89328B #B643B8

Accessibility & contrast

On white

11.32
#5D225E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5D225E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D225E
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D225E#FFFFFF#000000##FFFFFF
##5D225E1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3560
Deuteranopia (green-blind)
#2F3D5C
Tritanopia (blue-blind)
#602A3C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d225e;
/* rgb */ color: rgb(93, 34, 94);
/* oklch */ color: oklch(36.5% 0.118 327.0);
Tailwind
colors: {
  custom: {
    50: '#8d618c',
    500: '#5d225e',
    950: '#000000',
  },
}
SCSS
$custom: #5d225e;
$custom-light: #8d618c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d225e",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 94
  },
  "hsl": {
    "h": 299,
    "s": 46.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36493,
    "c": 0.11812,
    "h": 327
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#5D225E
secondary
#4B924A
accent
#D75154
background
#F8F5F8
surface
#F0EAF0
border
#CBC6CB
text
#0C050C
muted
#7D797D

Preview Lab

Preview with #5D225E

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

Preview Lab → · Contrast checker → · Palette generator →

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