#5D227E#5D227E

#5D227E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.151 H 310.6°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#5D227E
RGBrgb(93, 34, 126)
HSLhsl(278, 58%, 31%)
HSVhsv(278, 73%, 49%)
CMYKcmyk(26.2%, 73%, 0%, 50.6%)
CIE-LABlab(26.67, 42.71, -40.55)
CIE-LCHlch(26.67, 58.89, 316.48°)
OKLaboklab(38.67% 0.0982 -0.1147)
OKLCHoklch(38.67% 0.151 310.6)
XYZxyz(8.8514, 4.9778, 20.2291)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D227E #437E22
analogous
#2F227E #5D227E #7E2271
triadic
#5D227E #7E5D22 #227E5D
tetradic
#5D227E #7E2F22 #437E22 #22717E
square
#5D227E #7E2F22 #437E22 #22717E
split-complementary
#5D227E #717E22 #227E2F
monochromatic
#16081E #39154E #5D227E #812FAE #A04CCF

Accessibility & contrast

On white

10.52
#5D227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5D227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D227E
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D227E#FFFFFF#000000##FFFFFF
##5D227E1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#13407C
Tritanopia (blue-blind)
#59364D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d227e;
/* rgb */ color: rgb(93, 34, 126);
/* oklch */ color: oklch(38.7% 0.151 310.6);
Tailwind
colors: {
  custom: {
    50: '#8e63a4',
    500: '#5d227e',
    950: '#000000',
  },
}
SCSS
$custom: #5d227e;
$custom-light: #8e63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d227e",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 278.478,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.15099,
    "h": 310.6
  },
  "luminance": 0.04978
}

Semantic roles & 50–950 ramp

primary
#5D227E
secondary
#70B14B
accent
#E1477E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D227E

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

Preview Lab → · Contrast checker → · Palette generator →

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