#5C2B9E#5C2B9E

#5C2B9E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.175 H 297.9°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5C2B9E
RGBrgb(92, 43, 158)
HSLhsl(266, 57%, 39%)
HSVhsv(266, 73%, 62%)
CMYKcmyk(41.8%, 72.8%, 0%, 38%)
CIE-LABlab(30.57, 46.18, -54.03)
CIE-LCHlch(30.57, 71.08, 310.52°)
OKLaboklab(42.21% 0.0816 -0.1544)
OKLCHoklch(42.21% 0.175 297.9)
XYZxyz(11.4475, 6.4715, 32.9871)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2B9E #6D9E2B
analogous
#2B349E #5C2B9E #962B9E
triadic
#5C2B9E #9E5C2B #2B9E5C
tetradic
#5C2B9E #9E2B34 #6D9E2B #2B9E96
square
#5C2B9E #9E2B34 #6D9E2B #2B9E96
split-complementary
#5C2B9E #9E962B #349E2B
monochromatic
#24113E #401E6E #5C2B9E #793CCA #9A6CD7

Accessibility & contrast

On white

9.15
#5C2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5C2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2B9E
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2B9E#FFFFFF#000000##FFFFFF
##5C2B9E1.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#4C4862
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2b9e;
/* rgb */ color: rgb(92, 43, 158);
/* oklch */ color: oklch(42.2% 0.175 297.9);
Tailwind
colors: {
  custom: {
    50: '#9069bc',
    500: '#5c2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #5c2b9e;
$custom-light: #9069bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2b9e",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 265.565,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42205,
    "c": 0.17466,
    "h": 297.9
  },
  "luminance": 0.06472
}

Semantic roles & 50–950 ramp

primary
#5C2B9E
secondary
#99BE67
accent
#E0479F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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