#A81F98#A81F98

#A81F98 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.5% C 0.209 H 333.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#A81F98
RGBrgb(168, 31, 152)
HSLhsl(307, 69%, 39%)
HSVhsv(307, 82%, 66%)
CMYKcmyk(0%, 81.5%, 9.5%, 34.1%)
CIE-LABlab(40.53, 64.75, -33.76)
CIE-LCHlch(40.53, 73.02, 332.46°)
OKLaboklab(51.53% 0.1879 -0.0927)
OKLCHoklch(51.53% 0.209 333.7)
XYZxyz(22.3061, 11.5738, 30.7589)
Luminance0.1157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A81F98 #1FA82F
analogous
#741FA8 #A81F98 #A81F54
triadic
#A81F98 #98A81F #1F98A8
tetradic
#A81F98 #A8741F #1FA82F #1F54A8
square
#A81F98 #A8741F #1FA82F #1F54A8
split-complementary
#A81F98 #54A81F #1FA874
monochromatic
#410C3B #741569 #A81F98 #D82CC4 #E260D2

Accessibility & contrast

On white

6.34
#A81F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#A81F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A81F98
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A81F98#FFFFFF#000000##FFFFFF
##A81F981.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19539B
Deuteranopia (green-blind)
#526695
Tritanopia (blue-blind)
#B02F5C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a81f98;
/* rgb */ color: rgb(168, 31, 152);
/* oklch */ color: oklch(51.5% 0.209 333.7);
Tailwind
colors: {
  custom: {
    50: '#c66db7',
    500: '#a81f98',
    950: '#000000',
  },
}
SCSS
$custom: #a81f98;
$custom-light: #c66db7;
$custom-dark: #000000;
JSON
{
  "hex": "#a81f98",
  "rgb": {
    "r": 168,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 307.007,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51527,
    "c": 0.20948,
    "h": 333.7
  },
  "luminance": 0.11572
}

Semantic roles & 50–950 ramp

primary
#A81F98
secondary
#5DC669
accent
#EC513C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A81F98

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

Preview Lab → · Contrast checker → · Palette generator →

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