#5D229E#5D229E

#5D229E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.185 H 299.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5D229E
RGBrgb(93, 34, 158)
HSLhsl(269, 65%, 38%)
HSVhsv(269, 78%, 62%)
CMYKcmyk(41.1%, 78.5%, 0%, 38%)
CIE-LABlab(29.26, 50.45, -56.17)
CIE-LCHlch(29.26, 75.50, 311.93°)
OKLaboklab(41.31% 0.0914 -0.1606)
OKLCHoklch(41.31% 0.185 299.6)
XYZxyz(11.2562, 5.9397, 32.8946)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D229E #639E22
analogous
#22259E #5D229E #9B229E
triadic
#5D229E #9E5D22 #229E5D
tetradic
#5D229E #9E2225 #639E22 #229E9B
square
#5D229E #9E2225 #639E22 #229E9B
split-complementary
#5D229E #9E9B22 #259E22
monochromatic
#220C39 #3F176C #5D229E #7B2DD0 #9A5EDC

Accessibility & contrast

On white

9.60
#5D229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5D229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D229E
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D229E#FFFFFF#000000##FFFFFF
##5D229E1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4D435F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d229e;
/* rgb */ color: rgb(93, 34, 158);
/* oklch */ color: oklch(41.3% 0.185 299.6);
Tailwind
colors: {
  custom: {
    50: '#9164bc',
    500: '#5d229e',
    950: '#000000',
  },
}
SCSS
$custom: #5d229e;
$custom-light: #9164bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d229e",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 268.548,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41309,
    "c": 0.18476,
    "h": 299.6
  },
  "luminance": 0.0594
}

Semantic roles & 50–950 ramp

primary
#5D229E
secondary
#90C15B
accent
#E84098
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D229E

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

Preview Lab → · Contrast checker → · Palette generator →

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