#5D228C#5D228C

#5D228C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.166 H 305.3°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5D228C
RGBrgb(93, 34, 140)
HSLhsl(273, 61%, 34%)
HSVhsv(273, 76%, 55%)
CMYKcmyk(33.6%, 75.7%, 0%, 45.1%)
CIE-LABlab(27.75, 46.03, -47.56)
CIE-LCHlch(27.75, 66.19, 314.06°)
OKLaboklab(39.78% 0.0958 -0.1353)
OKLCHoklch(39.78% 0.166 305.3)
XYZxyz(9.8188, 5.3647, 25.3241)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D228C #518C22
analogous
#28228C #5D228C #8C2286
triadic
#5D228C #8C5D22 #228C5D
tetradic
#5D228C #8C2822 #518C22 #22868C
square
#5D228C #8C2822 #518C22 #22868C
split-complementary
#5D228C #868C22 #228C28
monochromatic
#1C0A2A #3C165B #5D228C #7E2EBD #9C53D5

Accessibility & contrast

On white

10.13
#5D228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5D228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D228C
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D228C#FFFFFF#000000##FFFFFF
##5D228C1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#543C55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d228c;
/* rgb */ color: rgb(93, 34, 140);
/* oklch */ color: oklch(39.8% 0.166 305.3);
Tailwind
colors: {
  custom: {
    50: '#9063ae',
    500: '#5d228c',
    950: '#000000',
  },
}
SCSS
$custom: #5d228c;
$custom-light: #9063ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d228c",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 273.396,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39779,
    "c": 0.16579,
    "h": 305.3
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

primary
#5D228C
secondary
#7FB951
accent
#E4448B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D228C

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

Preview Lab → · Contrast checker → · Palette generator →

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