#4A2C9D#4A2C9D

#4A2C9D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.172 H 288.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#4A2C9D
RGBrgb(74, 44, 157)
HSLhsl(256, 56%, 39%)
HSVhsv(256, 72%, 62%)
CMYKcmyk(52.9%, 72%, 0%, 38.4%)
CIE-LABlab(28.62, 42.20, -56.69)
CIE-LCHlch(28.62, 70.68, 306.66°)
OKLaboklab(40.32% 0.0541 -0.1629)
OKLCHoklch(40.32% 0.172 288.4)
XYZxyz(9.8087, 5.6911, 32.4734)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2C9D #7F9D2C
analogous
#2C479D #4A2C9D #832C9D
triadic
#4A2C9D #9D4A2C #2C9D4A
tetradic
#4A2C9D #9D2C47 #7F9D2C #2C9D83
square
#4A2C9D #9D2C47 #7F9D2C #2C9D83
split-complementary
#4A2C9D #9D832C #479D2C
monochromatic
#1D113D #331F6D #4A2C9D #623DC9 #896DD6

Accessibility & contrast

On white

9.82
#4A2C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4A2C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2C9D
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2C9D#FFFFFF#000000##FFFFFF
##4A2C9D1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#2B4A61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a2c9d;
/* rgb */ color: rgb(74, 44, 157);
/* oklch */ color: oklch(40.3% 0.172 288.4);
Tailwind
colors: {
  custom: {
    50: '#8568bb',
    500: '#4a2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #4a2c9d;
$custom-light: #8568bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2c9d",
  "rgb": {
    "r": 74,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 255.929,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4032,
    "c": 0.17161,
    "h": 288.4
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

primary
#4A2C9D
secondary
#A6BD68
accent
#E048B7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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