#5C2A7C#5C2A7C

#5C2A7C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.137 H 309.6°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5C2A7C
RGBrgb(92, 42, 124)
HSLhsl(277, 49%, 33%)
HSVhsv(277, 66%, 49%)
CMYKcmyk(25.8%, 66.1%, 0%, 51.4%)
CIE-LABlab(27.81, 38.04, -37.46)
CIE-LCHlch(27.81, 53.39, 315.44°)
OKLaboklab(39.42% 0.0874 -0.1057)
OKLCHoklch(39.42% 0.137 309.6)
XYZxyz(8.8790, 5.3866, 19.6369)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2A7C #4A7C2A
analogous
#332A7C #5C2A7C #7C2A73
triadic
#5C2A7C #7C5C2A #2A7C5C
tetradic
#5C2A7C #7C332A #4A7C2A #2A737C
square
#5C2A7C #7C332A #4A7C2A #2A737C
split-complementary
#5C2A7C #737C2A #2A7C33
monochromatic
#180B21 #3A1B4E #5C2A7C #7E39AA #9C59C7

Accessibility & contrast

On white

10.11
#5C2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5C2A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2A7C
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2A7C#FFFFFF#000000##FFFFFF
##5C2A7C1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#1E427A
Tritanopia (blue-blind)
#583A4F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c2a7c;
/* rgb */ color: rgb(92, 42, 124);
/* oklch */ color: oklch(39.4% 0.137 309.6);
Tailwind
colors: {
  custom: {
    50: '#8d67a2',
    500: '#5c2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #5c2a7c;
$custom-light: #8d67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2a7c",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 276.585,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39415,
    "c": 0.13716,
    "h": 309.6
  },
  "luminance": 0.05386
}

Semantic roles & 50–950 ramp

primary
#5C2A7C
secondary
#77AD55
accent
#D94F85
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5C2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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