#5D228A#5D228A

#5D228A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.164 H 306.0°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5D228A
RGBrgb(93, 34, 138)
HSLhsl(274, 60%, 34%)
HSVhsv(274, 75%, 54%)
CMYKcmyk(32.6%, 75.4%, 0%, 45.9%)
CIE-LABlab(27.59, 45.55, -46.58)
CIE-LCHlch(27.59, 65.15, 314.36°)
OKLaboklab(39.62% 0.0962 -0.1324)
OKLCHoklch(39.62% 0.164 306)
XYZxyz(9.6727, 5.3063, 24.5545)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D228A #4F8A22
analogous
#29228A #5D228A #8A2283
triadic
#5D228A #8A5D22 #228A5D
tetradic
#5D228A #8A2922 #4F8A22 #22838A
square
#5D228A #8A2922 #4F8A22 #22838A
split-complementary
#5D228A #838A22 #228A29
monochromatic
#1B0A28 #3C1659 #5D228A #7E2EBB #9C52D4

Accessibility & contrast

On white

10.19
#5D228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5D228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D228A
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D228A#FFFFFF#000000##FFFFFF
##5D228A1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#553B54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d228a;
/* rgb */ color: rgb(93, 34, 138);
/* oklch */ color: oklch(39.6% 0.164 306.0);
Tailwind
colors: {
  custom: {
    50: '#8f63ad',
    500: '#5d228a',
    950: '#000000',
  },
}
SCSS
$custom: #5d228a;
$custom-light: #8f63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d228a",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 274.038,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39616,
    "c": 0.16367,
    "h": 306
  },
  "luminance": 0.05306
}

Semantic roles & 50–950 ramp

primary
#5D228A
secondary
#7DB850
accent
#E44489
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D228A

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

Preview Lab → · Contrast checker → · Palette generator →

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