#4A20A1#4A20A1

#4A20A1 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.189 H 289.4°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4A20A1
RGBrgb(74, 32, 161)
HSLhsl(260, 67%, 38%)
HSVhsv(260, 80%, 63%)
CMYKcmyk(54%, 80.1%, 0%, 36.9%)
CIE-LABlab(26.91, 49.28, -61.93)
CIE-LCHlch(26.91, 79.15, 308.51°)
OKLaboklab(39.23% 0.0626 -0.1781)
OKLCHoklch(39.23% 0.189 289.4)
XYZxyz(9.7717, 5.0616, 34.1734)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A20A1 #77A120
analogous
#2036A1 #4A20A1 #8A20A1
triadic
#4A20A1 #A14A20 #20A14A
tetradic
#4A20A1 #A12036 #77A120 #20A18A
square
#4A20A1 #A12036 #77A120 #20A18A
split-complementary
#4A20A1 #A18A20 #36A120
monochromatic
#1B0C3B #33166E #4A20A1 #612AD4 #875DDF

Accessibility & contrast

On white

10.44
#4A20A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4A20A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A20A1
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A20A1#FFFFFF#000000##FFFFFF
##4A20A11.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#284661
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a20a1;
/* rgb */ color: rgb(74, 32, 161);
/* oklch */ color: oklch(39.2% 0.189 289.4);
Tailwind
colors: {
  custom: {
    50: '#8761be',
    500: '#4a20a1',
    950: '#000000',
  },
}
SCSS
$custom: #4a20a1;
$custom-light: #8761be;
$custom-dark: #000000;
JSON
{
  "hex": "#4a20a1",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 259.535,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39233,
    "c": 0.18881,
    "h": 289.4
  },
  "luminance": 0.05062
}

Semantic roles & 50–950 ramp

primary
#4A20A1
secondary
#A1C35A
accent
#EA3EB2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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