#4C2DA1#4C2DA1

#4C2DA1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.175 H 288.4°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4C2DA1
RGBrgb(76, 45, 161)
HSLhsl(256, 56%, 40%)
HSVhsv(256, 72%, 63%)
CMYKcmyk(52.8%, 72%, 0%, 36.9%)
CIE-LABlab(29.38, 43.17, -57.88)
CIE-LCHlch(29.38, 72.21, 306.72°)
OKLaboklab(41.02% 0.0553 -0.1663)
OKLCHoklch(41.02% 0.175 288.4)
XYZxyz(10.3500, 5.9860, 34.3214)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DA1 #82A12D
analogous
#2D48A1 #4C2DA1 #862DA1
triadic
#4C2DA1 #A14C2D #2DA14C
tetradic
#4C2DA1 #A12D48 #82A12D #2DA186
square
#4C2DA1 #A12D48 #82A12D #2DA186
split-complementary
#4C2DA1 #A1862D #48A12D
monochromatic
#1F1241 #352071 #4C2DA1 #6641CA #8C71D7

Accessibility & contrast

On white

9.56
#4C2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4C2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DA1
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DA1#FFFFFF#000000##FFFFFF
##4C2DA11.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#2C4C64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2da1;
/* rgb */ color: rgb(76, 45, 161);
/* oklch */ color: oklch(41.0% 0.175 288.4);
Tailwind
colors: {
  custom: {
    50: '#8769be',
    500: '#4c2da1',
    950: '#000000',
  },
}
SCSS
$custom: #4c2da1;
$custom-light: #8769be;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2da1",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 256.034,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41018,
    "c": 0.17523,
    "h": 288.4
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#4C2DA1
secondary
#A8BF6B
accent
#E048B7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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