#5D227D#5D227D

#5D227D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.150 H 311.0°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5D227D
RGBrgb(93, 34, 125)
HSLhsl(279, 57%, 31%)
HSVhsv(279, 73%, 49%)
CMYKcmyk(25.6%, 72.8%, 0%, 51%)
CIE-LABlab(26.60, 42.47, -40.04)
CIE-LCHlch(26.60, 58.37, 316.69°)
OKLaboklab(38.6% 0.0983 -0.1132)
OKLCHoklch(38.6% 0.15 311)
XYZxyz(8.7872, 4.9521, 19.8910)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D227D #427D22
analogous
#2F227D #5D227D #7D226F
triadic
#5D227D #7D5D22 #227D5D
tetradic
#5D227D #7D2F22 #427D22 #226F7D
square
#5D227D #7D2F22 #427D22 #226F7D
split-complementary
#5D227D #6F7D22 #227D2F
monochromatic
#15081D #39154D #5D227D #812FAD #A04BCE

Accessibility & contrast

On white

10.55
#5D227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5D227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D227D
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D227D#FFFFFF#000000##FFFFFF
##5D227D1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#14407B
Tritanopia (blue-blind)
#59364D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d227d;
/* rgb */ color: rgb(93, 34, 125);
/* oklch */ color: oklch(38.6% 0.150 311.0);
Tailwind
colors: {
  custom: {
    50: '#8e63a3',
    500: '#5d227d',
    950: '#000000',
  },
}
SCSS
$custom: #5d227d;
$custom-light: #8e63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d227d",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 278.901,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38598,
    "c": 0.14994,
    "h": 311
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#5D227D
secondary
#6EB04B
accent
#E0477D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D227D

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

Preview Lab → · Contrast checker → · Palette generator →

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