#A731D4#A731D4

#A731D4 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.5% C 0.240 H 314.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#A731D4
RGBrgb(167, 49, 212)
HSLhsl(283, 65%, 51%)
HSVhsv(283, 77%, 83%)
CMYKcmyk(21.2%, 76.9%, 0%, 16.9%)
CIE-LABlab(45.86, 69.64, -60.60)
CIE-LCHlch(45.86, 92.31, 318.97°)
OKLaboklab(56.45% 0.1677 -0.1712)
OKLCHoklch(56.45% 0.24 314.4)
XYZxyz(28.9163, 15.1666, 63.6788)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A731D4 #5ED431
analogous
#5531D4 #A731D4 #D431AF
triadic
#A731D4 #D4A731 #31D4A7
tetradic
#A731D4 #D45531 #5ED431 #31AFD4
square
#A731D4 #D45531 #5ED431 #31AFD4
split-complementary
#A731D4 #AFD431 #31D455
monochromatic
#5A1873 #8123A5 #A731D4 #BD64DF #D296E9

Accessibility & contrast

On white

5.21
#A731D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A731D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A731D4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A731D4#FFFFFF#000000##FFFFFF
##A731D41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#256FD1
Tritanopia (blue-blind)
#A35782
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a731d4;
/* rgb */ color: rgb(167, 49, 212);
/* oklch */ color: oklch(56.5% 0.240 314.4);
Tailwind
colors: {
  custom: {
    50: '#c676e2',
    500: '#a731d4',
    950: '#000000',
  },
}
SCSS
$custom: #a731d4;
$custom-light: #c676e2;
$custom-dark: #000000;
JSON
{
  "hex": "#a731d4",
  "rgb": {
    "r": 167,
    "g": 49,
    "b": 212
  },
  "hsl": {
    "h": 283.436,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56452,
    "c": 0.23964,
    "h": 314.4
  },
  "luminance": 0.15166
}

Semantic roles & 50–950 ramp

primary
#A731D4
secondary
#A0D48C
accent
#E83F6E
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#140A15
muted
#827C84

Preview Lab

Preview with #A731D4

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

Preview Lab → · Contrast checker → · Palette generator →

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