#5C2B97#5C2B97

#5C2B97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.167 H 299.9°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5C2B97
RGBrgb(92, 43, 151)
HSLhsl(267, 56%, 38%)
HSVhsv(267, 72%, 59%)
CMYKcmyk(39.1%, 71.5%, 0%, 40.8%)
CIE-LABlab(30.00, 44.35, -50.69)
CIE-LCHlch(30.00, 67.35, 311.18°)
OKLaboklab(41.62% 0.083 -0.1446)
OKLCHoklch(41.62% 0.167 299.9)
XYZxyz(10.8620, 6.2373, 29.9038)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2B97 #66972B
analogous
#2B3097 #5C2B97 #922B97
triadic
#5C2B97 #975C2B #2B975C
tetradic
#5C2B97 #972B30 #66972B #2B9792
square
#5C2B97 #972B30 #66972B #2B9792
split-complementary
#5C2B97 #97922B #30972B
monochromatic
#221038 #3F1D67 #5C2B97 #7939C7 #9968D4

Accessibility & contrast

On white

9.34
#5C2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5C2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2B97
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2B97#FFFFFF#000000##FFFFFF
##5C2B971.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#4F455E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c2b97;
/* rgb */ color: rgb(92, 43, 151);
/* oklch */ color: oklch(41.6% 0.167 299.9);
Tailwind
colors: {
  custom: {
    50: '#8f68b6',
    500: '#5c2b97',
    950: '#000000',
  },
}
SCSS
$custom: #5c2b97;
$custom-light: #8f68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2b97",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 267.222,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41623,
    "c": 0.16671,
    "h": 299.9
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#5C2B97
secondary
#93BB63
accent
#DF499B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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