#A42EC8#A42EC8

#A42EC8 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 55.0% C 0.231 H 316.7°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#A42EC8
RGBrgb(164, 46, 200)
HSLhsl(286, 63%, 48%)
HSVhsv(286, 77%, 78%)
CMYKcmyk(18%, 77%, 0%, 21.6%)
CIE-LABlab(44.26, 67.77, -56.28)
CIE-LCHlch(44.26, 88.09, 320.29°)
OKLaboklab(54.97% 0.1684 -0.1586)
OKLCHoklch(54.97% 0.231 316.7)
XYZxyz(26.7106, 14.0178, 55.9311)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42EC8 #52C82E
analogous
#572EC8 #A42EC8 #C82E9F
triadic
#A42EC8 #C8A42E #2EC8A4
tetradic
#A42EC8 #C8572E #52C82E #2E9FC8
square
#A42EC8 #C8572E #52C82E #2E9FC8
split-complementary
#A42EC8 #9FC82E #2EC857
monochromatic
#521764 #7B2396 #A42EC8 #BB5AD9 #D08CE5

Accessibility & contrast

On white

5.52
#A42EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#A42EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42EC8
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42EC8#FFFFFF#000000##FFFFFF
##A42EC81.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#2F6CC5
Tritanopia (blue-blind)
#A2517A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a42ec8;
/* rgb */ color: rgb(164, 46, 200);
/* oklch */ color: oklch(55.0% 0.231 316.7);
Tailwind
colors: {
  custom: {
    50: '#c374d9',
    500: '#a42ec8',
    950: '#000000',
  },
}
SCSS
$custom: #a42ec8;
$custom-light: #c374d9;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ec8",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 200
  },
  "hsl": {
    "h": 285.974,
    "s": 62.602,
    "l": 48.235
  },
  "oklch": {
    "l": 0.54974,
    "c": 0.23131,
    "h": 316.7
  },
  "luminance": 0.14017
}

Semantic roles & 50–950 ramp

primary
#A42EC8
secondary
#95CF83
accent
#E64268
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #A42EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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