#A42EC4#A42EC4

#A42EC4 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.7% C 0.228 H 317.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#A42EC4
RGBrgb(164, 46, 196)
HSLhsl(287, 62%, 47%)
HSVhsv(287, 77%, 77%)
CMYKcmyk(16.3%, 76.5%, 0%, 23.1%)
CIE-LABlab(43.99, 67.02, -54.39)
CIE-LCHlch(43.99, 86.31, 320.94°)
OKLaboklab(54.7% 0.169 -0.153)
OKLCHoklch(54.7% 0.228 317.8)
XYZxyz(26.2492, 13.8332, 53.5013)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42EC4 #4EC42E
analogous
#592EC4 #A42EC4 #C42E99
triadic
#A42EC4 #C4A42E #2EC4A4
tetradic
#A42EC4 #C4592E #4EC42E #2E99C4
square
#A42EC4 #C4592E #4EC42E #2E99C4
split-complementary
#A42EC4 #99C42E #2EC459
monochromatic
#511761 #7B2292 #A42EC4 #BC58D8 #D089E3

Accessibility & contrast

On white

5.58
#A42EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#A42EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42EC4
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42EC4#FFFFFF#000000##FFFFFF
##A42EC41.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#346CC1
Tritanopia (blue-blind)
#A34F78
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a42ec4;
/* rgb */ color: rgb(164, 46, 196);
/* oklch */ color: oklch(54.7% 0.228 317.8);
Tailwind
colors: {
  custom: {
    50: '#c374d7',
    500: '#a42ec4',
    950: '#000000',
  },
}
SCSS
$custom: #a42ec4;
$custom-light: #c374d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ec4",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 196
  },
  "hsl": {
    "h": 287.2,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54702,
    "c": 0.22795,
    "h": 317.8
  },
  "luminance": 0.13832
}

Semantic roles & 50–950 ramp

primary
#A42EC4
secondary
#91CD81
accent
#E54365
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #A42EC4

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

Preview Lab → · Contrast checker → · Palette generator →

#A42EC4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva