#A31A98#A31A98

#A31A98 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.4% C 0.211 H 332.0°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#A31A98
RGBrgb(163, 26, 152)
HSLhsl(305, 72%, 37%)
HSVhsv(305, 84%, 64%)
CMYKcmyk(0%, 84%, 6.7%, 36.1%)
CIE-LABlab(39.23, 64.88, -35.88)
CIE-LCHlch(39.23, 74.14, 331.06°)
OKLaboklab(50.43% 0.1863 -0.0989)
OKLCHoklch(50.43% 0.211 332)
XYZxyz(21.1412, 10.7942, 30.6697)
Luminance0.1079 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31A98 #1AA325
analogous
#6A1AA3 #A31A98 #A31A53
triadic
#A31A98 #98A31A #1A98A3
tetradic
#A31A98 #A36A1A #1AA325 #1A53A3
square
#A31A98 #A36A1A #1AA325 #1A53A3
split-complementary
#A31A98 #53A31A #1AA36A
monochromatic
#390936 #6E1267 #A31A98 #D822C9 #E454D8

Accessibility & contrast

On white

6.65
#A31A98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#A31A98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A31A98
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A31A98#FFFFFF#000000##FFFFFF
##A31A981.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08509B
Deuteranopia (green-blind)
#4C6395
Tritanopia (blue-blind)
#AA2E5B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a31a98;
/* rgb */ color: rgb(163, 26, 152);
/* oklch */ color: oklch(50.4% 0.211 332.0);
Tailwind
colors: {
  custom: {
    50: '#c26bb7',
    500: '#a31a98',
    950: '#000000',
  },
}
SCSS
$custom: #a31a98;
$custom-light: #c26bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#a31a98",
  "rgb": {
    "r": 163,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 304.818,
    "s": 72.487,
    "l": 37.059
  },
  "oklch": {
    "l": 0.50434,
    "c": 0.21095,
    "h": 332
  },
  "luminance": 0.10792
}

Semantic roles & 50–950 ramp

primary
#A31A98
secondary
#52C75C
accent
#EF4739
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #A31A98

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

Preview Lab → · Contrast checker → · Palette generator →

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