#A12EC4#A12EC4

#A12EC4 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.3% C 0.227 H 316.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#A12EC4
RGBrgb(161, 46, 196)
HSLhsl(286, 62%, 47%)
HSVhsv(286, 77%, 77%)
CMYKcmyk(17.9%, 76.5%, 0%, 23.1%)
CIE-LABlab(43.53, 66.45, -55.15)
CIE-LCHlch(43.53, 86.35, 320.31°)
OKLaboklab(54.29% 0.1653 -0.1553)
OKLCHoklch(54.29% 0.227 316.8)
XYZxyz(25.6372, 13.5177, 53.4726)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12EC4 #51C42E
analogous
#562EC4 #A12EC4 #C42E9C
triadic
#A12EC4 #C4A12E #2EC4A1
tetradic
#A12EC4 #C4562E #51C42E #2E9CC4
square
#A12EC4 #C4562E #51C42E #2E9CC4
split-complementary
#A12EC4 #9CC42E #2EC456
monochromatic
#501761 #782292 #A12EC4 #BA58D8 #CE89E3

Accessibility & contrast

On white

5.67
#A12EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#A12EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12EC4
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12EC4#FFFFFF#000000##FFFFFF
##A12EC41.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#2F6AC1
Tritanopia (blue-blind)
#9F4F78
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a12ec4;
/* rgb */ color: rgb(161, 46, 196);
/* oklch */ color: oklch(54.3% 0.227 316.8);
Tailwind
colors: {
  custom: {
    50: '#c174d7',
    500: '#a12ec4',
    950: '#000000',
  },
}
SCSS
$custom: #a12ec4;
$custom-light: #c174d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a12ec4",
  "rgb": {
    "r": 161,
    "g": 46,
    "b": 196
  },
  "hsl": {
    "h": 286,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54285,
    "c": 0.22687,
    "h": 316.8
  },
  "luminance": 0.13517
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A12EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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