#A31FB4#A31FB4

#A31FB4 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.4% C 0.228 H 322.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#A31FB4
RGBrgb(163, 31, 180)
HSLhsl(293, 71%, 41%)
HSVhsv(293, 83%, 71%)
CMYKcmyk(9.4%, 82.8%, 0%, 29.4%)
CIE-LABlab(41.32, 68.23, -49.32)
CIE-LCHlch(41.32, 84.19, 324.14°)
OKLaboklab(52.45% 0.1812 -0.1381)
OKLCHoklch(52.45% 0.228 322.7)
XYZxyz(23.8316, 12.0633, 44.2444)
Luminance0.1206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31FB4 #30B41F
analogous
#591FB4 #A31FB4 #B41F7B
triadic
#A31FB4 #B4A31F #1FB4A3
tetradic
#A31FB4 #B4591F #30B41F #1F7BB4
square
#A31FB4 #B4591F #30B41F #1F7BB4
split-complementary
#A31FB4 #7BB41F #1FB459
monochromatic
#440D4C #741680 #A31FB4 #C934DC #D768E5

Accessibility & contrast

On white

6.15
#A31FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#A31FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A31FB4
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A31FB4#FFFFFF#000000##FFFFFF
##A31FB41.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#3A66B1
Tritanopia (blue-blind)
#A5406C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a31fb4;
/* rgb */ color: rgb(163, 31, 180);
/* oklch */ color: oklch(52.4% 0.228 322.7);
Tailwind
colors: {
  custom: {
    50: '#c36ecb',
    500: '#a31fb4',
    950: '#000000',
  },
}
SCSS
$custom: #a31fb4;
$custom-light: #c36ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#a31fb4",
  "rgb": {
    "r": 163,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 293.154,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.5245,
    "c": 0.22779,
    "h": 322.7
  },
  "luminance": 0.12062
}

Semantic roles & 50–950 ramp

primary
#A31FB4
secondary
#70CB64
accent
#ED3A4F
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130813
muted
#827B82

Preview Lab

Preview with #A31FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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