#5D227A#5D227A

#5D227A is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.4% C 0.147 H 312.2°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5D227A
RGBrgb(93, 34, 122)
HSLhsl(280, 56%, 31%)
HSVhsv(280, 72%, 48%)
CMYKcmyk(23.8%, 72.1%, 0%, 52.2%)
CIE-LABlab(26.38, 41.78, -38.49)
CIE-LCHlch(26.38, 56.81, 317.35°)
OKLaboklab(38.37% 0.0987 -0.1086)
OKLCHoklch(38.37% 0.147 312.2)
XYZxyz(8.5984, 4.8766, 18.8969)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D227A #3F7A22
analogous
#31227A #5D227A #7A226B
triadic
#5D227A #7A5D22 #227A5D
tetradic
#5D227A #7A3122 #3F7A22 #226B7A
square
#5D227A #7A3122 #3F7A22 #226B7A
split-complementary
#5D227A #6B7A22 #227A31
monochromatic
#14071A #39154A #5D227A #812FAA #A14ACD

Accessibility & contrast

On white

10.63
#5D227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5D227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D227A
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D227A#FFFFFF#000000##FFFFFF
##5D227A1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#194078
Tritanopia (blue-blind)
#5A354B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d227a;
/* rgb */ color: rgb(93, 34, 122);
/* oklch */ color: oklch(38.4% 0.147 312.2);
Tailwind
colors: {
  custom: {
    50: '#8e62a1',
    500: '#5d227a',
    950: '#000000',
  },
}
SCSS
$custom: #5d227a;
$custom-light: #8e62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d227a",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 280.227,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38374,
    "c": 0.14677,
    "h": 312.2
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#5D227A
secondary
#6BAD4B
accent
#E0487A
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D227A

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

Preview Lab → · Contrast checker → · Palette generator →

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