#5D29A5#5D29A5

#5D29A5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.185 H 296.8°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5D29A5
RGBrgb(93, 41, 165)
HSLhsl(265, 60%, 40%)
HSVhsv(265, 75%, 65%)
CMYKcmyk(43.6%, 75.2%, 0%, 35.3%)
CIE-LABlab(30.95, 49.14, -57.65)
CIE-LCHlch(30.95, 75.75, 310.45°)
OKLaboklab(42.68% 0.0834 -0.165)
OKLCHoklch(42.68% 0.185 296.8)
XYZxyz(12.0969, 6.6294, 36.2323)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D29A5 #71A529
analogous
#2933A5 #5D29A5 #9B29A5
triadic
#5D29A5 #A55D29 #29A55D
tetradic
#5D29A5 #A52933 #71A529 #29A59B
square
#5D29A5 #A52933 #71A529 #29A59B
split-complementary
#5D29A5 #A59B29 #33A529
monochromatic
#261143 #411D74 #5D29A5 #7A3DCF #9B6EDB

Accessibility & contrast

On white

9.03
#5D29A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5D29A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D29A5
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D29A5#FFFFFF#000000##FFFFFF
##5D29A51.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#4A4A65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d29a5;
/* rgb */ color: rgb(93, 41, 165);
/* oklch */ color: oklch(42.7% 0.185 296.8);
Tailwind
colors: {
  custom: {
    50: '#9268c1',
    500: '#5d29a5',
    950: '#000000',
  },
}
SCSS
$custom: #5d29a5;
$custom-light: #9268c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d29a5",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 165
  },
  "hsl": {
    "h": 265.161,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42681,
    "c": 0.18489,
    "h": 296.8
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#5D29A5
secondary
#9CC268
accent
#E344A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D29A5

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

Preview Lab → · Contrast checker → · Palette generator →

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