#A12FA2#A12FA2

#A12FA2 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 52.2% C 0.198 H 327.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#A12FA2
RGBrgb(161, 47, 162)
HSLhsl(299, 55%, 41%)
HSVhsv(299, 71%, 64%)
CMYKcmyk(0.6%, 71%, 0%, 36.5%)
CIE-LABlab(41.56, 59.97, -38.23)
CIE-LCHlch(41.56, 71.11, 327.48°)
OKLaboklab(52.22% 0.1668 -0.1059)
OKLCHoklch(52.22% 0.198 327.6)
XYZxyz(22.2357, 12.2203, 35.3630)
Luminance0.1222 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12FA2 #30A22F
analogous
#672FA2 #A12FA2 #A22F69
triadic
#A12FA2 #A2A12F #2FA2A1
tetradic
#A12FA2 #A2672F #30A22F #2F69A2
square
#A12FA2 #A2672F #30A22F #2F69A2
split-complementary
#A12FA2 #69A22F #2FA267
monochromatic
#431343 #722173 #A12FA2 #C845C9 #D675D7

Accessibility & contrast

On white

6.10
#A12FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#A12FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12FA2
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12FA2#FFFFFF#000000##FFFFFF
##A12FA21.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A59A5
Deuteranopia (green-blind)
#4C679F
Tritanopia (blue-blind)
#A64065
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a12fa2;
/* rgb */ color: rgb(161, 47, 162);
/* oklch */ color: oklch(52.2% 0.198 327.6);
Tailwind
colors: {
  custom: {
    50: '#c073be',
    500: '#a12fa2',
    950: '#000000',
  },
}
SCSS
$custom: #a12fa2;
$custom-light: #c073be;
$custom-dark: #000000;
JSON
{
  "hex": "#a12fa2",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 299.478,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52215,
    "c": 0.19757,
    "h": 327.6
  },
  "luminance": 0.12219
}

Semantic roles & 50–950 ramp

primary
#A12FA2
secondary
#6FBF6E
accent
#DE494B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A12FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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