#A12EC3#A12EC3

#A12EC3 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.2% C 0.226 H 317.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#A12EC3
RGBrgb(161, 46, 195)
HSLhsl(286, 62%, 47%)
HSVhsv(286, 76%, 76%)
CMYKcmyk(17.4%, 76.4%, 0%, 23.5%)
CIE-LABlab(43.47, 66.26, -54.67)
CIE-LCHlch(43.47, 85.91, 320.47°)
OKLaboklab(54.22% 0.1655 -0.154)
OKLCHoklch(54.22% 0.226 317.1)
XYZxyz(25.5238, 13.4723, 52.8751)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12EC3 #50C32E
analogous
#572EC3 #A12EC3 #C32E9A
triadic
#A12EC3 #C3A12E #2EC3A1
tetradic
#A12EC3 #C3572E #50C32E #2E9AC3
square
#A12EC3 #C3572E #50C32E #2E9AC3
split-complementary
#A12EC3 #9AC32E #2EC357
monochromatic
#4F1760 #782291 #A12EC3 #BA57D7 #CE88E3

Accessibility & contrast

On white

5.68
#A12EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#A12EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12EC3
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12EC3#FFFFFF#000000##FFFFFF
##A12EC31.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#306AC0
Tritanopia (blue-blind)
#9F4F78
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a12ec3;
/* rgb */ color: rgb(161, 46, 195);
/* oklch */ color: oklch(54.2% 0.226 317.1);
Tailwind
colors: {
  custom: {
    50: '#c174d6',
    500: '#a12ec3',
    950: '#000000',
  },
}
SCSS
$custom: #a12ec3;
$custom-light: #c174d6;
$custom-dark: #000000;
JSON
{
  "hex": "#a12ec3",
  "rgb": {
    "r": 161,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 286.309,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54217,
    "c": 0.22603,
    "h": 317.1
  },
  "luminance": 0.13471
}

Semantic roles & 50–950 ramp

primary
#A12EC3
secondary
#92CD80
accent
#E54368
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #A12EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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