#A12FA8#A12FA8

#A12FA8 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.6% C 0.202 H 325.5°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#A12FA8
RGBrgb(161, 47, 168)
HSLhsl(297, 56%, 42%)
HSVhsv(297, 72%, 66%)
CMYKcmyk(4.2%, 72%, 0%, 34.1%)
CIE-LABlab(41.91, 61.00, -41.27)
CIE-LCHlch(41.91, 73.65, 325.92°)
OKLaboklab(52.57% 0.1668 -0.1147)
OKLCHoklch(52.57% 0.202 325.5)
XYZxyz(22.7818, 12.4387, 38.2392)
Luminance0.1244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12FA8 #36A82F
analogous
#652FA8 #A12FA8 #A82F73
triadic
#A12FA8 #A8A12F #2FA8A1
tetradic
#A12FA8 #A8652F #36A82F #2F73A8
square
#A12FA8 #A8652F #36A82F #2F73A8
split-complementary
#A12FA8 #73A82F #2FA865
monochromatic
#451448 #732278 #A12FA8 #C448CC #D478D9

Accessibility & contrast

On white

6.02
#A12FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#A12FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12FA8
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12FA8#FFFFFF#000000##FFFFFF
##A12FA81.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5AAB
Deuteranopia (green-blind)
#4968A5
Tritanopia (blue-blind)
#A54369
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a12fa8;
/* rgb */ color: rgb(161, 47, 168);
/* oklch */ color: oklch(52.6% 0.202 325.5);
Tailwind
colors: {
  custom: {
    50: '#c073c2',
    500: '#a12fa8',
    950: '#000000',
  },
}
SCSS
$custom: #a12fa8;
$custom-light: #c073c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a12fa8",
  "rgb": {
    "r": 161,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 296.529,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5257,
    "c": 0.20243,
    "h": 325.5
  },
  "luminance": 0.12437
}

Semantic roles & 50–950 ramp

primary
#A12FA8
secondary
#76C171
accent
#E04851
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #A12FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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