#A731AF#A731AF

#A731AF is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.209 H 325.2°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#A731AF
RGBrgb(167, 49, 175)
HSLhsl(296, 56%, 44%)
HSVhsv(296, 72%, 69%)
CMYKcmyk(4.6%, 72%, 0%, 31.4%)
CIE-LABlab(43.52, 62.83, -42.80)
CIE-LCHlch(43.52, 76.02, 325.74°)
OKLaboklab(54.04% 0.1714 -0.119)
OKLCHoklch(54.04% 0.209 325.2)
XYZxyz(24.7720, 13.5089, 41.8518)
Luminance0.1351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A731AF #39AF31
analogous
#6831AF #A731AF #AF3178
triadic
#A731AF #AFA731 #31AFA7
tetradic
#A731AF #AF6831 #39AF31 #3178AF
square
#A731AF #AF6831 #39AF31 #3178AF
split-complementary
#A731AF #78AF31 #31AF68
monochromatic
#4C164F #79247F #A731AF #C64FCE #D57FDB

Accessibility & contrast

On white

5.67
#A731AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#A731AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A731AF
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A731AF#FFFFFF#000000##FFFFFF
##A731AF1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5EB3
Deuteranopia (green-blind)
#4B6CAC
Tritanopia (blue-blind)
#AB466D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a731af;
/* rgb */ color: rgb(167, 49, 175);
/* oklch */ color: oklch(54.0% 0.209 325.2);
Tailwind
colors: {
  custom: {
    50: '#c575c7',
    500: '#a731af',
    950: '#000000',
  },
}
SCSS
$custom: #a731af;
$custom-light: #c575c7;
$custom-dark: #000000;
JSON
{
  "hex": "#a731af",
  "rgb": {
    "r": 167,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 296.19,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54044,
    "c": 0.20868,
    "h": 325.2
  },
  "luminance": 0.13507
}

Semantic roles & 50–950 ramp

primary
#A731AF
secondary
#7DC478
accent
#E04852
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A731AF

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

Preview Lab → · Contrast checker → · Palette generator →

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