#5C2D99#5C2D99

#5C2D99 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.166 H 298.9°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5C2D99
RGBrgb(92, 45, 153)
HSLhsl(266, 55%, 39%)
HSVhsv(266, 71%, 60%)
CMYKcmyk(39.9%, 70.6%, 0%, 40%)
CIE-LABlab(30.52, 43.86, -51.06)
CIE-LCHlch(30.52, 67.31, 310.66°)
OKLaboklab(42.05% 0.0805 -0.1457)
OKLCHoklch(42.05% 0.166 298.9)
XYZxyz(11.1003, 6.4518, 30.7913)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2D99 #6A992D
analogous
#2D3499 #5C2D99 #922D99
triadic
#5C2D99 #995C2D #2D995C
tetradic
#5C2D99 #992D34 #6A992D #2D9992
square
#5C2D99 #992D34 #6A992D #2D9992
split-complementary
#5C2D99 #99922D #34992D
monochromatic
#23113A #401F6A #5C2D99 #793DC6 #996CD4

Accessibility & contrast

On white

9.17
#5C2D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5C2D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2D99
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2D99#FFFFFF#000000##FFFFFF
##5C2D991.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#4E475F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2d99;
/* rgb */ color: rgb(92, 45, 153);
/* oklch */ color: oklch(42.0% 0.166 298.9);
Tailwind
colors: {
  custom: {
    50: '#8f6ab8',
    500: '#5c2d99',
    950: '#000000',
  },
}
SCSS
$custom: #5c2d99;
$custom-light: #8f6ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2d99",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 266.111,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42045,
    "c": 0.16647,
    "h": 298.9
  },
  "luminance": 0.06452
}

Semantic roles & 50–950 ramp

primary
#5C2D99
secondary
#96BB67
accent
#DE4A9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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