#5C2E8A#5C2E8A

#5C2E8A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.148 H 303.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5C2E8A
RGBrgb(92, 46, 138)
HSLhsl(270, 50%, 36%)
HSVhsv(270, 67%, 54%)
CMYKcmyk(33.3%, 66.7%, 0%, 45.9%)
CIE-LABlab(29.57, 39.42, -43.38)
CIE-LCHlch(29.57, 58.61, 312.27°)
OKLaboklab(41% 0.0814 -0.1231)
OKLCHoklch(41% 0.148 303.5)
XYZxyz(9.9770, 6.0643, 24.6847)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2E8A #5C8A2E
analogous
#2E2E8A #5C2E8A #8A2E8A
triadic
#5C2E8A #8A5C2E #2E8A5C
tetradic
#5C2E8A #8A2E2E #5C8A2E #2E8A8A
square
#5C2E8A #8A2E2E #5C8A2E #2E8A8A
split-complementary
#5C2E8A #8A8A2E #2E8A2E
monochromatic
#1F0F2E #3D1F5C #5C2E8A #7B3DB8 #9966CC

Accessibility & contrast

On white

9.49
#5C2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5C2E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2E8A
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2E8A#FFFFFF#000000##FFFFFF
##5C2E8A1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#0F4688
Tritanopia (blue-blind)
#534258
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c2e8a;
/* rgb */ color: rgb(92, 46, 138);
/* oklch */ color: oklch(41.0% 0.148 303.5);
Tailwind
colors: {
  custom: {
    50: '#8e6aad',
    500: '#5c2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c2e8a;
$custom-light: #8e6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2e8a",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 270,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41003,
    "c": 0.14756,
    "h": 303.5
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

primary
#5C2E8A
secondary
#8AB361
accent
#DA4E94
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5C2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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