#4A2EA2#4A2EA2

#4A2EA2 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.175 H 287.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4A2EA2
RGBrgb(74, 46, 162)
HSLhsl(254, 56%, 41%)
HSVhsv(254, 72%, 64%)
CMYKcmyk(54.3%, 71.6%, 0%, 36.5%)
CIE-LABlab(29.46, 42.60, -58.36)
CIE-LCHlch(29.46, 72.25, 306.13°)
OKLaboklab(41.05% 0.0513 -0.1678)
OKLCHoklch(41.05% 0.175 287)
XYZxyz(10.3207, 6.0179, 34.7932)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EA2 #86A22E
analogous
#2E4CA2 #4A2EA2 #842EA2
triadic
#4A2EA2 #A24A2E #2EA24A
tetradic
#4A2EA2 #A22E4C #86A22E #2EA284
square
#4A2EA2 #A22E4C #86A22E #2EA284
split-complementary
#4A2EA2 #A2842E #4CA22E
monochromatic
#1E1343 #342072 #4A2EA2 #6443CA #8B73D7

Accessibility & contrast

On white

9.53
#4A2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2EA2
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EA2#FFFFFF#000000##FFFFFF
##4A2EA21.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#264D65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a2ea2;
/* rgb */ color: rgb(74, 46, 162);
/* oklch */ color: oklch(41.1% 0.175 287.0);
Tailwind
colors: {
  custom: {
    50: '#8669bf',
    500: '#4a2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ea2;
$custom-light: #8669bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ea2",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 254.483,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41054,
    "c": 0.17542,
    "h": 287
  },
  "luminance": 0.06018
}

Semantic roles & 50–950 ramp

primary
#4A2EA2
secondary
#ABBF6D
accent
#DF49BB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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