#4C2A8A#4C2A8A

#4C2A8A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.151 H 294.5°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4C2A8A
RGBrgb(76, 42, 138)
HSLhsl(261, 53%, 35%)
HSVhsv(261, 70%, 54%)
CMYKcmyk(44.9%, 69.6%, 0%, 45.9%)
CIE-LABlab(26.81, 38.13, -47.94)
CIE-LCHlch(26.81, 61.26, 308.50°)
OKLaboklab(38.58% 0.0625 -0.1371)
OKLCHoklch(38.58% 0.151 294.5)
XYZxyz(8.3947, 5.0272, 24.5679)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A8A #688A2A
analogous
#2A388A #4C2A8A #7C2A8A
triadic
#4C2A8A #8A4C2A #2A8A4C
tetradic
#4C2A8A #8A2A38 #688A2A #2A8A7C
square
#4C2A8A #8A2A38 #688A2A #2A8A7C
split-complementary
#4C2A8A #8A7C2A #388A2A
monochromatic
#180D2C #321C5B #4C2A8A #6638B9 #8760CF

Accessibility & contrast

On white

10.47
#4C2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A8A
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A8A#FFFFFF#000000##FFFFFF
##4C2A8A1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#3B4156
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2a8a;
/* rgb */ color: rgb(76, 42, 138);
/* oklch */ color: oklch(38.6% 0.151 294.5);
Tailwind
colors: {
  custom: {
    50: '#8466ad',
    500: '#4c2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a8a;
$custom-light: #8466ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a8a",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 261.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38576,
    "c": 0.15069,
    "h": 294.5
  },
  "luminance": 0.05027
}

Semantic roles & 50–950 ramp

primary
#4C2A8A
secondary
#95B45B
accent
#DD4BA9
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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