#5C2D97#5C2D97

#5C2D97 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.164 H 299.5°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#5C2D97
RGBrgb(92, 45, 151)
HSLhsl(267, 54%, 38%)
HSVhsv(267, 70%, 59%)
CMYKcmyk(39.1%, 70.2%, 0%, 40.8%)
CIE-LABlab(30.37, 43.34, -50.10)
CIE-LCHlch(30.37, 66.24, 310.86°)
OKLaboklab(41.88% 0.0809 -0.1429)
OKLCHoklch(41.88% 0.164 299.5)
XYZxyz(10.9365, 6.3863, 29.9287)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2D97 #68972D
analogous
#2D3397 #5C2D97 #912D97
triadic
#5C2D97 #975C2D #2D975C
tetradic
#5C2D97 #972D33 #68972D #2D9791
square
#5C2D97 #972D33 #68972D #2D9791
split-complementary
#5C2D97 #97912D #33972D
monochromatic
#231139 #3F1F68 #5C2D97 #793CC5 #996BD3

Accessibility & contrast

On white

9.22
#5C2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5C2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2D97
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2D97#FFFFFF#000000##FFFFFF
##5C2D971.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#4E465E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c2d97;
/* rgb */ color: rgb(92, 45, 151);
/* oklch */ color: oklch(41.9% 0.164 299.5);
Tailwind
colors: {
  custom: {
    50: '#8f6ab6',
    500: '#5c2d97',
    950: '#000000',
  },
}
SCSS
$custom: #5c2d97;
$custom-light: #8f6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2d97",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 266.604,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41883,
    "c": 0.16416,
    "h": 299.5
  },
  "luminance": 0.06386
}

Semantic roles & 50–950 ramp

primary
#5C2D97
secondary
#95BA66
accent
#DD4A9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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