#5D2272#5D2272

#5D2272 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.8% C 0.138 H 315.9°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5D2272
RGBrgb(93, 34, 114)
HSLhsl(284, 54%, 29%)
HSVhsv(284, 70%, 45%)
CMYKcmyk(18.4%, 70.2%, 0%, 55.3%)
CIE-LABlab(25.82, 39.97, -34.29)
CIE-LCHlch(25.82, 52.67, 319.38°)
OKLaboklab(37.8% 0.0994 -0.0963)
OKLCHoklch(37.8% 0.138 315.9)
XYZxyz(8.1230, 4.6864, 16.3930)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2272 #377222
analogous
#352272 #5D2272 #72225F
triadic
#5D2272 #725D22 #22725D
tetradic
#5D2272 #723522 #377222 #225F72
square
#5D2272 #723522 #377222 #225F72
split-complementary
#5D2272 #5F7222 #227235
monochromatic
#130718 #371443 #5D2272 #8330A1 #A646C8

Accessibility & contrast

On white

10.84
#5D2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2272
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2272#FFFFFF#000000##FFFFFF
##5D22721.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#223F70
Tritanopia (blue-blind)
#5C3147
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d2272;
/* rgb */ color: rgb(93, 34, 114);
/* oklch */ color: oklch(37.8% 0.138 315.9);
Tailwind
colors: {
  custom: {
    50: '#8e629b',
    500: '#5d2272',
    950: '#000000',
  },
}
SCSS
$custom: #5d2272;
$custom-light: #8e629b;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2272",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 284.25,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37796,
    "c": 0.1384,
    "h": 315.9
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#5D2272
secondary
#62A54B
accent
#DD4A71
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D050E
muted
#7D7A7E

Preview Lab

Preview with #5D2272

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

Preview Lab → · Contrast checker → · Palette generator →

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