#5C2E9C#5C2E9C

#5C2E9C is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.169 H 297.9°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5C2E9C
RGBrgb(92, 46, 156)
HSLhsl(265, 54%, 40%)
HSVhsv(265, 71%, 61%)
CMYKcmyk(41%, 70.5%, 0%, 38.8%)
CIE-LABlab(30.95, 44.15, -52.20)
CIE-LCHlch(30.95, 68.36, 310.22°)
OKLaboklab(42.42% 0.079 -0.149)
OKLCHoklch(42.42% 0.169 297.9)
XYZxyz(11.3898, 6.6294, 32.1256)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2E9C #6E9C2E
analogous
#2E379C #5C2E9C #932E9C
triadic
#5C2E9C #9C5C2E #2E9C5C
tetradic
#5C2E9C #9C2E37 #6E9C2E #2E9C93
square
#5C2E9C #9C2E37 #6E9C2E #2E9C93
split-complementary
#5C2E9C #9C932E #379C2E
monochromatic
#24123D #40206D #5C2E9C #7940C7 #9A70D5

Accessibility & contrast

On white

9.03
#5C2E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5C2E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2E9C
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2E9C#FFFFFF#000000##FFFFFF
##5C2E9C1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#4C4961
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2e9c;
/* rgb */ color: rgb(92, 46, 156);
/* oklch */ color: oklch(42.4% 0.169 297.9);
Tailwind
colors: {
  custom: {
    50: '#906aba',
    500: '#5c2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #5c2e9c;
$custom-light: #906aba;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2e9c",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 265.091,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42421,
    "c": 0.16868,
    "h": 297.9
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#5C2E9C
secondary
#9ABC6A
accent
#DE4AA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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