#4C2AA3#4C2AA3

#4C2AA3 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.181 H 288.5°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#4C2AA3
RGBrgb(76, 42, 163)
HSLhsl(257, 59%, 40%)
HSVhsv(257, 74%, 64%)
CMYKcmyk(53.4%, 74.2%, 0%, 36.1%)
CIE-LABlab(29.00, 45.34, -59.71)
CIE-LCHlch(29.00, 74.97, 307.21°)
OKLaboklab(40.8% 0.0575 -0.1716)
OKLCHoklch(40.8% 0.181 288.5)
XYZxyz(10.4174, 5.8363, 35.2208)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AA3 #81A32A
analogous
#2A44A3 #4C2AA3 #892AA3
triadic
#4C2AA3 #A34C2A #2AA34C
tetradic
#4C2AA3 #A32A44 #81A32A #2AA389
square
#4C2AA3 #A32A44 #81A32A #2AA389
split-complementary
#4C2AA3 #A3892A #44A32A
monochromatic
#1F1142 #351D72 #4C2AA3 #663DCD #8C6EDA

Accessibility & contrast

On white

9.69
#4C2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4C2AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AA3
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AA3#FFFFFF#000000##FFFFFF
##4C2AA31.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A7
Deuteranopia (green-blind)
#0041A1
Tritanopia (blue-blind)
#2A4B64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2aa3;
/* rgb */ color: rgb(76, 42, 163);
/* oklch */ color: oklch(40.8% 0.181 288.5);
Tailwind
colors: {
  custom: {
    50: '#8767bf',
    500: '#4c2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aa3;
$custom-light: #8767bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aa3",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 256.86,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40803,
    "c": 0.181,
    "h": 288.5
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

primary
#4C2AA3
secondary
#A8C068
accent
#E246B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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