#4C2A82#4C2A82

#4C2A82 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.141 H 296.9°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#4C2A82
RGBrgb(76, 42, 130)
HSLhsl(263, 51%, 34%)
HSVhsv(263, 68%, 51%)
CMYKcmyk(41.5%, 67.7%, 0%, 49%)
CIE-LABlab(26.17, 35.86, -43.99)
CIE-LCHlch(26.17, 56.75, 309.18°)
OKLaboklab(37.91% 0.0636 -0.1255)
OKLCHoklch(37.91% 0.141 296.9)
XYZxyz(7.8367, 4.8040, 21.6291)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A82 #60822A
analogous
#2A3482 #4C2A82 #782A82
triadic
#4C2A82 #824C2A #2A824C
tetradic
#4C2A82 #822A34 #60822A #2A8278
square
#4C2A82 #822A34 #60822A #2A8278
split-complementary
#4C2A82 #82782A #34822A
monochromatic
#160C25 #311B54 #4C2A82 #6739B0 #875CCA

Accessibility & contrast

On white

10.71
#4C2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4C2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A82
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A82#FFFFFF#000000##FFFFFF
##4C2A821.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#3F3E52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2a82;
/* rgb */ color: rgb(76, 42, 130);
/* oklch */ color: oklch(37.9% 0.141 296.9);
Tailwind
colors: {
  custom: {
    50: '#8366a7',
    500: '#4c2a82',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a82;
$custom-light: #8366a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a82",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 263.182,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37911,
    "c": 0.1407,
    "h": 296.9
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#4C2A82
secondary
#8EB058
accent
#DB4DA4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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