#5C2A9A#5C2A9A

#5C2A9A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.171 H 299.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5C2A9A
RGBrgb(92, 42, 154)
HSLhsl(267, 57%, 38%)
HSVhsv(267, 73%, 60%)
CMYKcmyk(40.3%, 72.7%, 0%, 39.6%)
CIE-LABlab(30.07, 45.62, -52.41)
CIE-LCHlch(30.07, 69.49, 311.04°)
OKLaboklab(41.75% 0.0835 -0.1496)
OKLCHoklch(41.75% 0.171 299.1)
XYZxyz(11.0729, 6.2642, 31.1913)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2A9A #689A2A
analogous
#2A309A #5C2A9A #942A9A
triadic
#5C2A9A #9A5C2A #2A9A5C
tetradic
#5C2A9A #9A2A30 #689A2A #2A9A94
square
#5C2A9A #9A2A30 #689A2A #2A9A94
split-complementary
#5C2A9A #9A942A #309A2A
monochromatic
#23103A #3F1D6A #5C2A9A #7938C9 #9968D6

Accessibility & contrast

On white

9.32
#5C2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2A9A
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2A9A#FFFFFF#000000##FFFFFF
##5C2A9A1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#4D465F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c2a9a;
/* rgb */ color: rgb(92, 42, 154);
/* oklch */ color: oklch(41.7% 0.171 299.1);
Tailwind
colors: {
  custom: {
    50: '#9068b9',
    500: '#5c2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #5c2a9a;
$custom-light: #9068b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2a9a",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 266.786,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41746,
    "c": 0.17134,
    "h": 299.1
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#5C2A9A
secondary
#95BC63
accent
#E0479C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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