#5C2A91#5C2A91

#5C2A91 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.161 H 301.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5C2A91
RGBrgb(92, 42, 145)
HSLhsl(269, 55%, 37%)
HSVhsv(269, 71%, 57%)
CMYKcmyk(36.6%, 71%, 0%, 43.1%)
CIE-LABlab(29.35, 43.30, -48.06)
CIE-LCHlch(29.35, 64.69, 312.01°)
OKLaboklab(41.01% 0.0851 -0.1369)
OKLCHoklch(41.01% 0.161 301.9)
XYZxyz(10.3512, 5.9755, 27.3906)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2A91 #5F912A
analogous
#2A2C91 #5C2A91 #902A91
triadic
#5C2A91 #915C2A #2A915C
tetradic
#5C2A91 #912A2C #5F912A #2A9190
square
#5C2A91 #912A2C #5F912A #2A9190
split-complementary
#5C2A91 #91902A #2C912A
monochromatic
#200F32 #3E1C62 #5C2A91 #7A38C0 #9963D2

Accessibility & contrast

On white

9.57
#5C2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5C2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2A91
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2A91#FFFFFF#000000##FFFFFF
##5C2A911.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#51425A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c2a91;
/* rgb */ color: rgb(92, 42, 145);
/* oklch */ color: oklch(41.0% 0.161 301.9);
Tailwind
colors: {
  custom: {
    50: '#8f68b2',
    500: '#5c2a91',
    950: '#000000',
  },
}
SCSS
$custom: #5c2a91;
$custom-light: #8f68b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2a91",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 269.126,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4101,
    "c": 0.16116,
    "h": 301.9
  },
  "luminance": 0.05976
}

Semantic roles & 50–950 ramp

primary
#5C2A91
secondary
#8DB85F
accent
#DE4996
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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