#A02EC4#A02EC4

#A02EC4 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.1% C 0.227 H 316.4°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#A02EC4
RGBrgb(160, 46, 196)
HSLhsl(286, 62%, 47%)
HSVhsv(286, 77%, 77%)
CMYKcmyk(18.4%, 76.5%, 0%, 23.1%)
CIE-LABlab(43.38, 66.26, -55.40)
CIE-LCHlch(43.38, 86.37, 320.10°)
OKLaboklab(54.15% 0.1641 -0.1561)
OKLCHoklch(54.15% 0.227 316.4)
XYZxyz(25.4365, 13.4141, 53.4632)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A02EC4 #52C42E
analogous
#552EC4 #A02EC4 #C42E9D
triadic
#A02EC4 #C4A02E #2EC4A0
tetradic
#A02EC4 #C4552E #52C42E #2E9DC4
square
#A02EC4 #C4552E #52C42E #2E9DC4
split-complementary
#A02EC4 #9DC42E #2EC455
monochromatic
#4F1761 #782292 #A02EC4 #B958D8 #CE89E3

Accessibility & contrast

On white

5.70
#A02EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#A02EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A02EC4
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A02EC4#FFFFFF#000000##FFFFFF
##A02EC41.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#2E6AC1
Tritanopia (blue-blind)
#9E5078
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #a02ec4;
/* rgb */ color: rgb(160, 46, 196);
/* oklch */ color: oklch(54.1% 0.227 316.4);
Tailwind
colors: {
  custom: {
    50: '#c173d7',
    500: '#a02ec4',
    950: '#000000',
  },
}
SCSS
$custom: #a02ec4;
$custom-light: #c173d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a02ec4",
  "rgb": {
    "r": 160,
    "g": 46,
    "b": 196
  },
  "hsl": {
    "h": 285.6,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54147,
    "c": 0.22651,
    "h": 316.4
  },
  "luminance": 0.13413
}

Semantic roles & 50–950 ramp

primary
#A02EC4
secondary
#93CD81
accent
#E5436A
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #A02EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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