#4C2A96#4C2A96

#4C2A96 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.165 H 291.4°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#4C2A96
RGBrgb(76, 42, 150)
HSLhsl(259, 56%, 38%)
HSVhsv(259, 72%, 59%)
CMYKcmyk(49.3%, 72%, 0%, 41.2%)
CIE-LABlab(27.83, 41.58, -53.70)
CIE-LCHlch(27.83, 67.92, 307.75°)
OKLaboklab(39.62% 0.0604 -0.154)
OKLCHoklch(39.62% 0.165 291.4)
XYZxyz(9.3119, 5.3941, 29.3988)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A96 #74962A
analogous
#2A3E96 #4C2A96 #822A96
triadic
#4C2A96 #964C2A #2A964C
tetradic
#4C2A96 #962A3E #74962A #2A9682
square
#4C2A96 #962A3E #74962A #2A9682
split-complementary
#4C2A96 #96822A #3E962A
monochromatic
#1C0F36 #341D66 #4C2A96 #6437C6 #8966D4

Accessibility & contrast

On white

10.10
#4C2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4C2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A96
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A96#FFFFFF#000000##FFFFFF
##4C2A961.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#34465D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c2a96;
/* rgb */ color: rgb(76, 42, 150);
/* oklch */ color: oklch(39.6% 0.165 291.4);
Tailwind
colors: {
  custom: {
    50: '#8567b6',
    500: '#4c2a96',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a96;
$custom-light: #8567b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a96",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 258.889,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39618,
    "c": 0.1654,
    "h": 291.4
  },
  "luminance": 0.05394
}

Semantic roles & 50–950 ramp

primary
#4C2A96
secondary
#9EBA61
accent
#E048B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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