#4A2EA4#4A2EA4

#4A2EA4 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.178 H 286.6°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#4A2EA4
RGBrgb(74, 46, 164)
HSLhsl(254, 56%, 41%)
HSVhsv(254, 72%, 64%)
CMYKcmyk(54.9%, 72%, 0%, 35.7%)
CIE-LABlab(29.64, 43.20, -59.27)
CIE-LCHlch(29.64, 73.35, 306.08°)
OKLaboklab(41.24% 0.0509 -0.1704)
OKLCHoklch(41.24% 0.178 286.6)
XYZxyz(10.4999, 6.0896, 35.7369)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EA4 #88A42E
analogous
#2E4DA4 #4A2EA4 #852EA4
triadic
#4A2EA4 #A44A2E #2EA44A
tetradic
#4A2EA4 #A42E4D #88A42E #2EA485
square
#4A2EA4 #A42E4D #88A42E #2EA485
split-complementary
#4A2EA4 #A4852E #4DA42E
monochromatic
#1F1344 #342174 #4A2EA4 #6445CB #8C74D8

Accessibility & contrast

On white

9.47
#4A2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4A2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EA4
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EA4#FFFFFF#000000##FFFFFF
##4A2EA41.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#244D66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2ea4;
/* rgb */ color: rgb(74, 46, 164);
/* oklch */ color: oklch(41.2% 0.178 286.6);
Tailwind
colors: {
  custom: {
    50: '#8669c0',
    500: '#4a2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ea4;
$custom-light: #8669c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ea4",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 254.237,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41238,
    "c": 0.17786,
    "h": 286.6
  },
  "luminance": 0.0609
}

Semantic roles & 50–950 ramp

primary
#4A2EA4
secondary
#ACC06E
accent
#DF48BC
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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