#5C2C92#5C2C92

#5C2C92 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.160 H 301.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5C2C92
RGBrgb(92, 44, 146)
HSLhsl(268, 54%, 37%)
HSVhsv(268, 70%, 57%)
CMYKcmyk(37%, 69.9%, 0%, 42.7%)
CIE-LABlab(29.79, 42.54, -47.96)
CIE-LCHlch(29.79, 64.11, 311.57°)
OKLaboklab(41.35% 0.0827 -0.1366)
OKLCHoklch(41.35% 0.16 301.2)
XYZxyz(10.5014, 6.1519, 27.8227)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2C92 #62922C
analogous
#2C2F92 #5C2C92 #8F2C92
triadic
#5C2C92 #925C2C #2C925C
tetradic
#5C2C92 #922C2F #62922C #2C928F
square
#5C2C92 #922C2F #62922C #2C928F
split-complementary
#5C2C92 #928F2C #2F922C
monochromatic
#211034 #3E1E63 #5C2C92 #7A3AC1 #9967D1

Accessibility & contrast

On white

9.42
#5C2C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2C92
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2C92#FFFFFF#000000##FFFFFF
##5C2C921.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004695
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#50445B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c2c92;
/* rgb */ color: rgb(92, 44, 146);
/* oklch */ color: oklch(41.3% 0.160 301.2);
Tailwind
colors: {
  custom: {
    50: '#8f69b3',
    500: '#5c2c92',
    950: '#000000',
  },
}
SCSS
$custom: #5c2c92;
$custom-light: #8f69b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2c92",
  "rgb": {
    "r": 92,
    "g": 44,
    "b": 146
  },
  "hsl": {
    "h": 268.235,
    "s": 53.684,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4135,
    "c": 0.15968,
    "h": 301.2
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#5C2C92
secondary
#8FB862
accent
#DD4B98
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2C92

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

Preview Lab → · Contrast checker → · Palette generator →

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