#A831D4#A831D4

#A831D4 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.6% C 0.240 H 314.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A831D4
RGBrgb(168, 49, 212)
HSLhsl(284, 65%, 51%)
HSVhsv(284, 77%, 83%)
CMYKcmyk(20.8%, 76.9%, 0%, 16.9%)
CIE-LABlab(46.01, 69.82, -60.35)
CIE-LCHlch(46.01, 92.29, 319.16°)
OKLaboklab(56.59% 0.169 -0.1704)
OKLCHoklch(56.59% 0.24 314.8)
XYZxyz(29.1284, 15.2760, 63.6888)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A831D4 #5DD431
analogous
#5631D4 #A831D4 #D431AE
triadic
#A831D4 #D4A831 #31D4A8
tetradic
#A831D4 #D45631 #5DD431 #31AED4
square
#A831D4 #D45631 #5DD431 #31AED4
split-complementary
#A831D4 #AED431 #31D456
monochromatic
#5A1873 #8223A5 #A831D4 #BD64DF #D396E9

Accessibility & contrast

On white

5.18
#A831D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#A831D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A831D4
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A831D4#FFFFFF#000000##FFFFFF
##A831D41.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#2770D1
Tritanopia (blue-blind)
#A45782
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a831d4;
/* rgb */ color: rgb(168, 49, 212);
/* oklch */ color: oklch(56.6% 0.240 314.8);
Tailwind
colors: {
  custom: {
    50: '#c776e2',
    500: '#a831d4',
    950: '#000000',
  },
}
SCSS
$custom: #a831d4;
$custom-light: #c776e2;
$custom-dark: #000000;
JSON
{
  "hex": "#a831d4",
  "rgb": {
    "r": 168,
    "g": 49,
    "b": 212
  },
  "hsl": {
    "h": 283.804,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56586,
    "c": 0.23997,
    "h": 314.8
  },
  "luminance": 0.15275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A831D4

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

Preview Lab → · Contrast checker → · Palette generator →

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