#5D228E#5D228E

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

Color values

HEX#5D228E
RGBrgb(93, 34, 142)
HSLhsl(273, 61%, 35%)
HSVhsv(273, 76%, 56%)
CMYKcmyk(34.5%, 76.1%, 0%, 44.3%)
CIE-LABlab(27.91, 46.52, -48.54)
CIE-LCHlch(27.91, 67.23, 313.78°)
OKLaboklab(39.94% 0.0954 -0.1382)
OKLCHoklch(39.94% 0.168 304.6)
XYZxyz(9.9676, 5.4243, 26.1078)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D228E #538E22
analogous
#27228E #5D228E #8E2289
triadic
#5D228E #8E5D22 #228E5D
tetradic
#5D228E #8E2722 #538E22 #22898E
square
#5D228E #8E2722 #538E22 #22898E
split-complementary
#5D228E #898E22 #228E27
monochromatic
#1C0A2B #3D165D #5D228E #7D2EBF #9B54D6

Accessibility & contrast

On white

10.07
#5D228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D228E
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D228E#FFFFFF#000000##FFFFFF
##5D228E1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#543D56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d228e;
/* rgb */ color: rgb(93, 34, 142);
/* oklch */ color: oklch(39.9% 0.168 304.6);
Tailwind
colors: {
  custom: {
    50: '#9063b0',
    500: '#5d228e',
    950: '#000000',
  },
}
SCSS
$custom: #5d228e;
$custom-light: #9063b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d228e",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 272.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39943,
    "c": 0.16789,
    "h": 304.6
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#5D228E
secondary
#81BA52
accent
#E4438C
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D228E

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

Preview Lab → · Contrast checker → · Palette generator →

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