#A12898#A12898

#A12898 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 51.0% C 0.198 H 331.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#A12898
RGBrgb(161, 40, 152)
HSLhsl(304, 60%, 39%)
HSVhsv(304, 75%, 63%)
CMYKcmyk(0%, 75.2%, 5.6%, 36.9%)
CIE-LABlab(40.19, 60.69, -34.39)
CIE-LCHlch(40.19, 69.75, 330.46°)
OKLaboklab(51.05% 0.1734 -0.0947)
OKLCHoklch(51.05% 0.198 331.3)
XYZxyz(21.1242, 11.3634, 30.7805)
Luminance0.1136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A12898 #28A131
analogous
#6E28A1 #A12898 #A1285C
triadic
#A12898 #98A128 #2898A1
tetradic
#A12898 #A16E28 #28A131 #285CA1
square
#A12898 #A16E28 #28A131 #285CA1
split-complementary
#A12898 #5CA128 #28A16E
monochromatic
#3F103B #701C6A #A12898 #CE39C3 #DA6AD2

Accessibility & contrast

On white

6.42
#A12898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A12898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A12898
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A12898#FFFFFF#000000##FFFFFF
##A128981.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D549B
Deuteranopia (green-blind)
#4F6595
Tritanopia (blue-blind)
#A8375E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a12898;
/* rgb */ color: rgb(161, 40, 152);
/* oklch */ color: oklch(51.0% 0.198 331.3);
Tailwind
colors: {
  custom: {
    50: '#c06fb7',
    500: '#a12898',
    950: '#000000',
  },
}
SCSS
$custom: #a12898;
$custom-light: #c06fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#a12898",
  "rgb": {
    "r": 161,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 304.463,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51049,
    "c": 0.19754,
    "h": 331.3
  },
  "luminance": 0.11362
}

Semantic roles & 50–950 ramp

primary
#A12898
secondary
#65C06B
accent
#E35044
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A12898

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

Preview Lab → · Contrast checker → · Palette generator →

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