#5C2CA4#5C2CA4

#5C2CA4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.180 H 296.1°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5C2CA4
RGBrgb(92, 44, 164)
HSLhsl(264, 58%, 41%)
HSVhsv(264, 73%, 64%)
CMYKcmyk(43.9%, 73.2%, 0%, 35.7%)
CIE-LABlab(31.25, 47.28, -56.56)
CIE-LCHlch(31.25, 73.72, 309.89°)
OKLaboklab(42.84% 0.0794 -0.1619)
OKLCHoklch(42.84% 0.18 296.1)
XYZxyz(12.0134, 6.7567, 35.7860)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2CA4 #74A42C
analogous
#2C38A4 #5C2CA4 #982CA4
triadic
#5C2CA4 #A45C2C #2CA45C
tetradic
#5C2CA4 #A42C38 #74A42C #2CA498
square
#5C2CA4 #A42C38 #74A42C #2CA498
split-complementary
#5C2CA4 #A4982C #38A42C
monochromatic
#261243 #411F74 #5C2CA4 #7941CC #9B71D9

Accessibility & contrast

On white

8.93
#5C2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5C2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2CA4
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2CA4#FFFFFF#000000##FFFFFF
##5C2CA41.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#494B65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2ca4;
/* rgb */ color: rgb(92, 44, 164);
/* oklch */ color: oklch(42.8% 0.180 296.1);
Tailwind
colors: {
  custom: {
    50: '#916ac0',
    500: '#5c2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ca4;
$custom-light: #916ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ca4",
  "rgb": {
    "r": 92,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 264,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42838,
    "c": 0.18029,
    "h": 296.1
  },
  "luminance": 0.06757
}

Semantic roles & 50–950 ramp

primary
#5C2CA4
secondary
#9EC06B
accent
#E147A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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