#5D29A2#5D29A2

#5D29A2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.182 H 297.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5D29A2
RGBrgb(93, 41, 162)
HSLhsl(266, 60%, 40%)
HSVhsv(266, 75%, 64%)
CMYKcmyk(42.6%, 74.7%, 0%, 36.5%)
CIE-LABlab(30.69, 48.36, -56.25)
CIE-LCHlch(30.69, 74.19, 310.69°)
OKLaboklab(42.42% 0.0842 -0.1609)
OKLCHoklch(42.42% 0.182 297.6)
XYZxyz(11.8270, 6.5215, 34.8111)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D29A2 #6EA229
analogous
#2932A2 #5D29A2 #9A29A2
triadic
#5D29A2 #A25D29 #29A25D
tetradic
#5D29A2 #A22932 #6EA229 #29A29A
square
#5D29A2 #A22932 #6EA229 #29A29A
split-complementary
#5D29A2 #A29A29 #32A229
monochromatic
#251040 #411D71 #5D29A2 #7A3BCD #9B6CDA

Accessibility & contrast

On white

9.11
#5D29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5D29A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D29A2
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D29A2#FFFFFF#000000##FFFFFF
##5D29A21.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#4B4863
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d29a2;
/* rgb */ color: rgb(93, 41, 162);
/* oklch */ color: oklch(42.4% 0.182 297.6);
Tailwind
colors: {
  custom: {
    50: '#9168be',
    500: '#5d29a2',
    950: '#000000',
  },
}
SCSS
$custom: #5d29a2;
$custom-light: #9168be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d29a2",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 265.785,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42421,
    "c": 0.18158,
    "h": 297.6
  },
  "luminance": 0.06522
}

Semantic roles & 50–950 ramp

primary
#5D29A2
secondary
#9AC067
accent
#E3459F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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