#5D297D#5D297D

#5D297D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.140 H 310.0°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5D297D
RGBrgb(93, 41, 125)
HSLhsl(277, 51%, 33%)
HSVhsv(277, 67%, 49%)
CMYKcmyk(25.6%, 67.2%, 0%, 51%)
CIE-LABlab(27.83, 39.05, -38.06)
CIE-LCHlch(27.83, 54.52, 315.74°)
OKLaboklab(39.48% 0.09 -0.1074)
OKLCHoklch(39.48% 0.14 310)
XYZxyz(9.0081, 5.3939, 19.9646)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D297D #497D29
analogous
#33297D #5D297D #7D2973
triadic
#5D297D #7D5D29 #297D5D
tetradic
#5D297D #7D3329 #497D29 #29737D
square
#5D297D #7D3329 #497D29 #29737D
split-complementary
#5D297D #737D29 #297D33
monochromatic
#180B21 #3B1A4F #5D297D #7F38AB #9E58C8

Accessibility & contrast

On white

10.10
#5D297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D297D
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D297D#FFFFFF#000000##FFFFFF
##5D297D1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#1D427B
Tritanopia (blue-blind)
#593A4F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d297d;
/* rgb */ color: rgb(93, 41, 125);
/* oklch */ color: oklch(39.5% 0.140 310.0);
Tailwind
colors: {
  custom: {
    50: '#8e66a3',
    500: '#5d297d',
    950: '#000000',
  },
}
SCSS
$custom: #5d297d;
$custom-light: #8e66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d297d",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 277.143,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39481,
    "c": 0.14013,
    "h": 310
  },
  "luminance": 0.05394
}

Semantic roles & 50–950 ramp

primary
#5D297D
secondary
#76AE54
accent
#DA4E83
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5D297D

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

Preview Lab → · Contrast checker → · Palette generator →

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