#5D228D#5D228D

#5D228D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.167 H 304.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5D228D
RGBrgb(93, 34, 141)
HSLhsl(273, 61%, 34%)
HSVhsv(273, 76%, 55%)
CMYKcmyk(34%, 75.9%, 0%, 44.7%)
CIE-LABlab(27.83, 46.27, -48.05)
CIE-LCHlch(27.83, 66.71, 313.92°)
OKLaboklab(39.86% 0.0956 -0.1368)
OKLCHoklch(39.86% 0.167 304.9)
XYZxyz(9.8929, 5.3944, 25.7142)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D228D #528D22
analogous
#28228D #5D228D #8D2288
triadic
#5D228D #8D5D22 #228D5D
tetradic
#5D228D #8D2822 #528D22 #22888D
square
#5D228D #8D2822 #528D22 #22888D
split-complementary
#5D228D #888D22 #228D28
monochromatic
#1C0A2A #3C165C #5D228D #7E2EBE #9B54D6

Accessibility & contrast

On white

10.10
#5D228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D228D
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D228D#FFFFFF#000000##FFFFFF
##5D228D1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#543C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d228d;
/* rgb */ color: rgb(93, 34, 141);
/* oklch */ color: oklch(39.9% 0.167 304.9);
Tailwind
colors: {
  custom: {
    50: '#9063af',
    500: '#5d228d',
    950: '#000000',
  },
}
SCSS
$custom: #5d228d;
$custom-light: #9063af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d228d",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 273.084,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39861,
    "c": 0.16684,
    "h": 304.9
  },
  "luminance": 0.05394
}

Semantic roles & 50–950 ramp

primary
#5D228D
secondary
#80B951
accent
#E4448C
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D228D

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

Preview Lab → · Contrast checker → · Palette generator →

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