#A831AF#A831AF

#A831AF is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.209 H 325.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#A831AF
RGBrgb(168, 49, 175)
HSLhsl(297, 56%, 44%)
HSVhsv(297, 72%, 69%)
CMYKcmyk(4%, 72%, 0%, 31.4%)
CIE-LABlab(43.68, 63.05, -42.53)
CIE-LCHlch(43.68, 76.05, 326.00°)
OKLaboklab(54.19% 0.1725 -0.1182)
OKLCHoklch(54.19% 0.209 325.6)
XYZxyz(24.9841, 13.6182, 41.8618)
Luminance0.1362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A831AF #38AF31
analogous
#6931AF #A831AF #AF3177
triadic
#A831AF #AFA831 #31AFA8
tetradic
#A831AF #AF6931 #38AF31 #3177AF
square
#A831AF #AF6931 #38AF31 #3177AF
split-complementary
#A831AF #77AF31 #31AF69
monochromatic
#4C164F #7A247F #A831AF #C74FCE #D67FDB

Accessibility & contrast

On white

5.64
#A831AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#A831AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A831AF
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A831AF#FFFFFF#000000##FFFFFF
##A831AF1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5EB2
Deuteranopia (green-blind)
#4C6CAC
Tritanopia (blue-blind)
#AC466D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a831af;
/* rgb */ color: rgb(168, 49, 175);
/* oklch */ color: oklch(54.2% 0.209 325.6);
Tailwind
colors: {
  custom: {
    50: '#c575c7',
    500: '#a831af',
    950: '#000000',
  },
}
SCSS
$custom: #a831af;
$custom-light: #c575c7;
$custom-dark: #000000;
JSON
{
  "hex": "#a831af",
  "rgb": {
    "r": 168,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 296.667,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5419,
    "c": 0.20914,
    "h": 325.6
  },
  "luminance": 0.13617
}

Semantic roles & 50–950 ramp

primary
#A831AF
secondary
#7CC478
accent
#E04851
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A831AF

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

Preview Lab → · Contrast checker → · Palette generator →

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