#4A2AA5#4A2AA5

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

Color values

HEX#4A2AA5
RGBrgb(74, 42, 165)
HSLhsl(256, 59%, 41%)
HSVhsv(256, 75%, 65%)
CMYKcmyk(55.2%, 74.5%, 0%, 35.3%)
CIE-LABlab(28.97, 45.61, -60.97)
CIE-LCHlch(28.97, 76.14, 306.80°)
OKLaboklab(40.8% 0.054 -0.1754)
OKLCHoklch(40.8% 0.183 287.1)
XYZxyz(10.4415, 5.8278, 36.1647)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AA5 #85A52A
analogous
#2A47A5 #4A2AA5 #872AA5
triadic
#4A2AA5 #A54A2A #2AA54A
tetradic
#4A2AA5 #A52A47 #85A52A #2AA587
square
#4A2AA5 #A52A47 #85A52A #2AA587
split-complementary
#4A2AA5 #A5872A #47A52A
monochromatic
#1E1143 #341E74 #4A2AA5 #643ECE #8B6FDA

Accessibility & contrast

On white

9.70
#4A2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2AA5
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AA5#FFFFFF#000000##FFFFFF
##4A2AA51.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#234C65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a2aa5;
/* rgb */ color: rgb(74, 42, 165);
/* oklch */ color: oklch(40.8% 0.183 287.1);
Tailwind
colors: {
  custom: {
    50: '#8767c1',
    500: '#4a2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aa5;
$custom-light: #8767c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aa5",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 255.61,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40796,
    "c": 0.18349,
    "h": 287.1
  },
  "luminance": 0.05828
}

Semantic roles & 50–950 ramp

primary
#4A2AA5
secondary
#AAC169
accent
#E345BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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