#5C2A87#5C2A87

#5C2A87 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.150 H 305.3°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5C2A87
RGBrgb(92, 42, 135)
HSLhsl(272, 53%, 35%)
HSVhsv(272, 69%, 53%)
CMYKcmyk(31.9%, 68.9%, 0%, 47.1%)
CIE-LABlab(28.59, 40.76, -43.10)
CIE-LCHlch(28.59, 59.32, 313.40°)
OKLaboklab(40.23% 0.0865 -0.1223)
OKLCHoklch(40.23% 0.15 305.3)
XYZxyz(9.6138, 5.6806, 23.5070)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2A87 #55872A
analogous
#2E2A87 #5C2A87 #872A84
triadic
#5C2A87 #875C2A #2A875C
tetradic
#5C2A87 #872E2A #55872A #2A8487
square
#5C2A87 #872E2A #55872A #2A8487
split-complementary
#5C2A87 #84872A #2A872E
monochromatic
#1C0D2A #3C1B58 #5C2A87 #7C39B6 #9A5ECD

Accessibility & contrast

On white

9.83
#5C2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5C2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2A87
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2A87#FFFFFF#000000##FFFFFF
##5C2A871.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#0D4485
Tritanopia (blue-blind)
#543E55
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c2a87;
/* rgb */ color: rgb(92, 42, 135);
/* oklch */ color: oklch(40.2% 0.150 305.3);
Tailwind
colors: {
  custom: {
    50: '#8e67ab',
    500: '#5c2a87',
    950: '#000000',
  },
}
SCSS
$custom: #5c2a87;
$custom-light: #8e67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2a87",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 272.258,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40227,
    "c": 0.14975,
    "h": 305.3
  },
  "luminance": 0.05681
}

Semantic roles & 50–950 ramp

primary
#5C2A87
secondary
#83B35A
accent
#DC4C8E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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