#5C2B95#5C2B95

#5C2B95 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.164 H 300.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5C2B95
RGBrgb(92, 43, 149)
HSLhsl(268, 55%, 38%)
HSVhsv(268, 71%, 58%)
CMYKcmyk(38.3%, 71.1%, 0%, 41.6%)
CIE-LABlab(29.84, 43.83, -49.72)
CIE-LCHlch(29.84, 66.28, 311.40°)
OKLaboklab(41.46% 0.0833 -0.1417)
OKLCHoklch(41.46% 0.164 300.5)
XYZxyz(10.7010, 6.1729, 29.0557)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2B95 #64952B
analogous
#2B2F95 #5C2B95 #912B95
triadic
#5C2B95 #955C2B #2B955C
tetradic
#5C2B95 #952B2F #64952B #2B9591
square
#5C2B95 #952B2F #64952B #2B9591
split-complementary
#5C2B95 #95912B #2F952B
monochromatic
#211036 #3F1D66 #5C2B95 #7939C4 #9967D3

Accessibility & contrast

On white

9.40
#5C2B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5C2B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2B95
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2B95#FFFFFF#000000##FFFFFF
##5C2B951.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#4F445D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c2b95;
/* rgb */ color: rgb(92, 43, 149);
/* oklch */ color: oklch(41.5% 0.164 300.5);
Tailwind
colors: {
  custom: {
    50: '#8f68b5',
    500: '#5c2b95',
    950: '#000000',
  },
}
SCSS
$custom: #5c2b95;
$custom-light: #8f68b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2b95",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 267.736,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4146,
    "c": 0.16443,
    "h": 300.5
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#5C2B95
secondary
#91BA62
accent
#DF499A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2B95

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

Preview Lab → · Contrast checker → · Palette generator →

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