#5D2273#5D2273

#5D2273 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.9% C 0.139 H 315.4°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5D2273
RGBrgb(93, 34, 115)
HSLhsl(284, 54%, 29%)
HSVhsv(284, 70%, 45%)
CMYKcmyk(19.1%, 70.4%, 0%, 54.9%)
CIE-LABlab(25.89, 40.20, -34.82)
CIE-LCHlch(25.89, 53.18, 319.10°)
OKLaboklab(37.87% 0.0993 -0.0979)
OKLCHoklch(37.87% 0.139 315.4)
XYZxyz(8.1802, 4.7093, 16.6944)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2273 #387322
analogous
#352273 #5D2273 #732261
triadic
#5D2273 #735D22 #22735D
tetradic
#5D2273 #733522 #387322 #226173
square
#5D2273 #733522 #387322 #226173
split-complementary
#5D2273 #617322 #227335
monochromatic
#130718 #371444 #5D2273 #8330A2 #A547C9

Accessibility & contrast

On white

10.81
#5D2273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D2273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2273
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2273#FFFFFF#000000##FFFFFF
##5D22731.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A75
Deuteranopia (green-blind)
#213F71
Tritanopia (blue-blind)
#5B3247
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d2273;
/* rgb */ color: rgb(93, 34, 115);
/* oklch */ color: oklch(37.9% 0.139 315.4);
Tailwind
colors: {
  custom: {
    50: '#8e629c',
    500: '#5d2273',
    950: '#000000',
  },
}
SCSS
$custom: #5d2273;
$custom-light: #8e629c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2273",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 283.704,
    "s": 54.362,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37867,
    "c": 0.13944,
    "h": 315.4
  },
  "luminance": 0.04709
}

Semantic roles & 50–950 ramp

primary
#5D2273
secondary
#63A64B
accent
#DE4A72
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D050E
muted
#7D7A7E

Preview Lab

Preview with #5D2273

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

Preview Lab → · Contrast checker → · Palette generator →

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