#4A2D9A#4A2D9A

#4A2D9A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.167 H 288.8°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#4A2D9A
RGBrgb(74, 45, 154)
HSLhsl(256, 55%, 39%)
HSVhsv(256, 71%, 60%)
CMYKcmyk(51.9%, 70.8%, 0%, 39.6%)
CIE-LABlab(28.55, 40.77, -54.98)
CIE-LCHlch(28.55, 68.44, 306.56°)
OKLaboklab(40.19% 0.0537 -0.1578)
OKLCHoklch(40.19% 0.167 288.8)
XYZxyz(9.5935, 5.6653, 31.1536)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2D9A #7D9A2D
analogous
#2D479A #4A2D9A #812D9A
triadic
#4A2D9A #9A4A2D #2D9A4A
tetradic
#4A2D9A #9A2D47 #7D9A2D #2D9A81
square
#4A2D9A #9A2D47 #7D9A2D #2D9A81
split-complementary
#4A2D9A #9A812D #479A2D
monochromatic
#1C113B #331F6B #4A2D9A #623EC7 #896DD4

Accessibility & contrast

On white

9.84
#4A2D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4A2D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2D9A
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2D9A#FFFFFF#000000##FFFFFF
##4A2D9A1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#2D4960
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a2d9a;
/* rgb */ color: rgb(74, 45, 154);
/* oklch */ color: oklch(40.2% 0.167 288.8);
Tailwind
colors: {
  custom: {
    50: '#8568b9',
    500: '#4a2d9a',
    950: '#000000',
  },
}
SCSS
$custom: #4a2d9a;
$custom-light: #8568b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2d9a",
  "rgb": {
    "r": 74,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 255.963,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40191,
    "c": 0.16672,
    "h": 288.8
  },
  "luminance": 0.05666
}

Semantic roles & 50–950 ramp

primary
#4A2D9A
secondary
#A5BB67
accent
#DE4AB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4A2D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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