#4A2EA1#4A2EA1

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

Color values

HEX#4A2EA1
RGBrgb(74, 46, 161)
HSLhsl(255, 56%, 41%)
HSVhsv(255, 71%, 63%)
CMYKcmyk(54%, 71.4%, 0%, 36.9%)
CIE-LABlab(29.37, 42.30, -57.90)
CIE-LCHlch(29.37, 71.71, 306.15°)
OKLaboklab(40.96% 0.0515 -0.1664)
OKLCHoklch(40.96% 0.174 287.2)
XYZxyz(10.2322, 5.9825, 34.3269)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EA1 #85A12E
analogous
#2E4BA1 #4A2EA1 #842EA1
triadic
#4A2EA1 #A14A2E #2EA14A
tetradic
#4A2EA1 #A12E4B #85A12E #2EA184
square
#4A2EA1 #A12E4B #85A12E #2EA184
split-complementary
#4A2EA1 #A1842E #4BA12E
monochromatic
#1E1342 #342071 #4A2EA1 #6443C9 #8B73D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A2EA1#FFFFFF#000000##FFFFFF
##4A2EA11.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)
#274C64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a2ea1;
/* rgb */ color: rgb(74, 46, 161);
/* oklch */ color: oklch(41.0% 0.174 287.2);
Tailwind
colors: {
  custom: {
    50: '#8669be',
    500: '#4a2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ea1;
$custom-light: #8669be;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ea1",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 254.609,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40963,
    "c": 0.17419,
    "h": 287.2
  },
  "luminance": 0.05983
}

Semantic roles & 50–950 ramp

primary
#4A2EA1
secondary
#AABE6C
accent
#DF49BA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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