#4C2A9E#4C2A9E

#4C2A9E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.175 H 289.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4C2A9E
RGBrgb(76, 42, 158)
HSLhsl(258, 58%, 39%)
HSVhsv(258, 73%, 62%)
CMYKcmyk(51.9%, 73.4%, 0%, 38%)
CIE-LABlab(28.54, 43.89, -57.43)
CIE-LCHlch(28.54, 72.28, 307.39°)
OKLaboklab(40.34% 0.0586 -0.1649)
OKLCHoklch(40.34% 0.175 289.6)
XYZxyz(9.9782, 5.6606, 32.9080)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A9E #7C9E2A
analogous
#2A429E #4C2A9E #862A9E
triadic
#4C2A9E #9E4C2A #2A9E4C
tetradic
#4C2A9E #9E2A42 #7C9E2A #2A9E86
square
#4C2A9E #9E2A42 #7C9E2A #2A9E86
split-complementary
#4C2A9E #9E862A #429E2A
monochromatic
#1D103D #351D6E #4C2A9E #653ACB #8B6BD8

Accessibility & contrast

On white

9.85
#4C2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4C2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A9E
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A9E#FFFFFF#000000##FFFFFF
##4C2A9E1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#2E4961
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c2a9e;
/* rgb */ color: rgb(76, 42, 158);
/* oklch */ color: oklch(40.3% 0.175 289.6);
Tailwind
colors: {
  custom: {
    50: '#8767bc',
    500: '#4c2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a9e;
$custom-light: #8767bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a9e",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 257.586,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40341,
    "c": 0.17505,
    "h": 289.6
  },
  "luminance": 0.05661
}

Semantic roles & 50–950 ramp

primary
#4C2A9E
secondary
#A4BE66
accent
#E147B4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

#4C2A9E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva