#A31FBC#A31FBC

#A31FBC is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 53.0% C 0.234 H 320.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#A31FBC
RGBrgb(163, 31, 188)
HSLhsl(290, 72%, 43%)
HSVhsv(290, 84%, 74%)
CMYKcmyk(13.3%, 83.5%, 0%, 26.3%)
CIE-LABlab(41.84, 69.62, -53.18)
CIE-LCHlch(41.84, 87.61, 322.63°)
OKLaboklab(52.99% 0.18 -0.1494)
OKLCHoklch(52.99% 0.234 320.3)
XYZxyz(24.6702, 12.3987, 48.6609)
Luminance0.1240 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31FBC #38BC1F
analogous
#551FBC #A31FBC #BC1F86
triadic
#A31FBC #BCA31F #1FBCA3
tetradic
#A31FBC #BC551F #38BC1F #1F86BC
square
#A31FBC #BC551F #38BC1F #1F86BC
split-complementary
#A31FBC #86BC1F #1FBC55
monochromatic
#480E53 #751687 #A31FBC #C43ADE #D46EE7

Accessibility & contrast

On white

6.04
#A31FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#A31FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A31FBC
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A31FBC#FFFFFF#000000##FFFFFF
##A31FBC1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#3267B9
Tritanopia (blue-blind)
#A44471
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a31fbc;
/* rgb */ color: rgb(163, 31, 188);
/* oklch */ color: oklch(53.0% 0.234 320.3);
Tailwind
colors: {
  custom: {
    50: '#c36ed1',
    500: '#a31fbc',
    950: '#000000',
  },
}
SCSS
$custom: #a31fbc;
$custom-light: #c36ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#a31fbc",
  "rgb": {
    "r": 163,
    "g": 31,
    "b": 188
  },
  "hsl": {
    "h": 290.446,
    "s": 71.689,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52988,
    "c": 0.23394,
    "h": 320.3
  },
  "luminance": 0.12397
}

Semantic roles & 50–950 ramp

primary
#A31FBC
secondary
#79CD69
accent
#EE3956
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #A31FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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