#5D229F#5D229F

#5D229F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.186 H 299.4°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5D229F
RGBrgb(93, 34, 159)
HSLhsl(268, 65%, 38%)
HSVhsv(268, 79%, 62%)
CMYKcmyk(41.5%, 78.6%, 0%, 37.6%)
CIE-LABlab(29.35, 50.70, -56.63)
CIE-LCHlch(29.35, 76.01, 311.84°)
OKLaboklab(41.4% 0.0911 -0.1619)
OKLCHoklch(41.4% 0.186 299.4)
XYZxyz(11.3426, 5.9743, 33.3497)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D229F #649F22
analogous
#22259F #5D229F #9B229F
triadic
#5D229F #9F5D22 #229F5D
tetradic
#5D229F #9F2225 #649F22 #229F9B
square
#5D229F #9F2225 #649F22 #229F9B
split-complementary
#5D229F #9F9B22 #259F22
monochromatic
#220C3A #40176D #5D229F #7A2DD1 #9A5FDD

Accessibility & contrast

On white

9.57
#5D229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D229F
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D229F#FFFFFF#000000##FFFFFF
##5D229F1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#4D4460
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d229f;
/* rgb */ color: rgb(93, 34, 159);
/* oklch */ color: oklch(41.4% 0.186 299.4);
Tailwind
colors: {
  custom: {
    50: '#9164bc',
    500: '#5d229f',
    950: '#000000',
  },
}
SCSS
$custom: #5d229f;
$custom-light: #9164bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d229f",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 268.32,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41397,
    "c": 0.18581,
    "h": 299.4
  },
  "luminance": 0.05974
}

Semantic roles & 50–950 ramp

primary
#5D229F
secondary
#91C15B
accent
#E84099
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D229F

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

Preview Lab → · Contrast checker → · Palette generator →

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