#5D299C#5D299C

#5D299C is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.175 H 299.3°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5D299C
RGBrgb(93, 41, 156)
HSLhsl(267, 58%, 39%)
HSVhsv(267, 74%, 61%)
CMYKcmyk(40.4%, 73.7%, 0%, 38.8%)
CIE-LABlab(30.19, 46.81, -53.43)
CIE-LCHlch(30.19, 71.04, 311.22°)
OKLaboklab(41.91% 0.0855 -0.1526)
OKLCHoklch(41.91% 0.175 299.3)
XYZxyz(11.3064, 6.3132, 32.0689)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D299C #689C29
analogous
#292E9C #5D299C #96299C
triadic
#5D299C #9C5D29 #299C5D
tetradic
#5D299C #9C292E #689C29 #299C96
square
#5D299C #9C292E #689C29 #299C96
split-complementary
#5D299C #9C9629 #2E9C29
monochromatic
#23103B #401C6C #5D299C #7A38CB #9A68D7

Accessibility & contrast

On white

9.28
#5D299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5D299C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D299C
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D299C#FFFFFF#000000##FFFFFF
##5D299C1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#4E4660
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d299c;
/* rgb */ color: rgb(93, 41, 156);
/* oklch */ color: oklch(41.9% 0.175 299.3);
Tailwind
colors: {
  custom: {
    50: '#9168ba',
    500: '#5d299c',
    950: '#000000',
  },
}
SCSS
$custom: #5d299c;
$custom-light: #9168ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d299c",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 267.13,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4191,
    "c": 0.17492,
    "h": 299.3
  },
  "luminance": 0.06313
}

Semantic roles & 50–950 ramp

primary
#5D299C
secondary
#95BE63
accent
#E2469B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D299C

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

Preview Lab → · Contrast checker → · Palette generator →

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