#A31A99#A31A99

#A31A99 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.5% C 0.212 H 331.7°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#A31A99
RGBrgb(163, 26, 153)
HSLhsl(304, 72%, 37%)
HSVhsv(304, 84%, 64%)
CMYKcmyk(0%, 84%, 6.1%, 36.1%)
CIE-LABlab(39.29, 65.03, -36.39)
CIE-LCHlch(39.29, 74.52, 330.77°)
OKLaboklab(50.49% 0.1863 -0.1004)
OKLCHoklch(50.49% 0.212 331.7)
XYZxyz(21.2235, 10.8271, 31.1029)
Luminance0.1082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31A99 #1AA324
analogous
#691AA3 #A31A99 #A31A54
triadic
#A31A99 #99A31A #1A99A3
tetradic
#A31A99 #A3691A #1AA324 #1A54A3
square
#A31A99 #A3691A #1AA324 #1A54A3
split-complementary
#A31A99 #54A31A #1AA369
monochromatic
#390936 #6E1267 #A31A99 #D822CB #E454D9

Accessibility & contrast

On white

6.64
#A31A99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#A31A99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A31A99
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A31A99#FFFFFF#000000##FFFFFF
##A31A991.006.643.176.64
#FFFFFF6.641.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05519C
Deuteranopia (green-blind)
#4B6396
Tritanopia (blue-blind)
#AA2F5B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a31a99;
/* rgb */ color: rgb(163, 26, 153);
/* oklch */ color: oklch(50.5% 0.212 331.7);
Tailwind
colors: {
  custom: {
    50: '#c26bb7',
    500: '#a31a99',
    950: '#000000',
  },
}
SCSS
$custom: #a31a99;
$custom-light: #c26bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#a31a99",
  "rgb": {
    "r": 163,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 304.38,
    "s": 72.487,
    "l": 37.059
  },
  "oklch": {
    "l": 0.50492,
    "c": 0.21165,
    "h": 331.7
  },
  "luminance": 0.10825
}

Semantic roles & 50–950 ramp

primary
#A31A99
secondary
#52C75B
accent
#EF4639
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #A31A99

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

Preview Lab → · Contrast checker → · Palette generator →

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