#A251BB#A251BB

#A251BB is a mid, vivid purple. Relative luminance 0.172; OKLCH L 57.7% C 0.174 H 317.6°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#A251BB
RGBrgb(162, 81, 187)
HSLhsl(286, 44%, 53%)
HSVhsv(286, 57%, 73%)
CMYKcmyk(13.4%, 56.7%, 0%, 26.7%)
CIE-LABlab(48.45, 50.09, -42.03)
CIE-LCHlch(48.45, 65.39, 320.00°)
OKLaboklab(57.68% 0.1284 -0.1172)
OKLCHoklch(57.68% 0.174 317.6)
XYZxyz(26.8111, 17.1551, 48.9030)
Luminance0.1715 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A251BB #6ABB51
analogous
#6D51BB #A251BB #BB519F
triadic
#A251BB #BBA251 #51BBA2
tetradic
#A251BB #BB6D51 #6ABB51 #519FBB
square
#A251BB #BB6D51 #6ABB51 #519FBB
split-complementary
#A251BB #9FBB51 #51BB6D
monochromatic
#5A2969 #7F3A95 #A251BB #BA7DCC #D1A9DD

Accessibility & contrast

On white

4.74
#A251BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#A251BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A251BB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A251BB#FFFFFF#000000##FFFFFF
##A251BB1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386EBE
Deuteranopia (green-blind)
#5576B8
Tritanopia (blue-blind)
#A1627E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a251bb;
/* rgb */ color: rgb(162, 81, 187);
/* oklch */ color: oklch(57.7% 0.174 317.6);
Tailwind
colors: {
  custom: {
    50: '#c086d0',
    500: '#a251bb',
    950: '#000000',
  },
}
SCSS
$custom: #a251bb;
$custom-light: #c086d0;
$custom-dark: #000000;
JSON
{
  "hex": "#a251bb",
  "rgb": {
    "r": 162,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 285.849,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57684,
    "c": 0.17383,
    "h": 317.6
  },
  "luminance": 0.17154
}

Semantic roles & 50–950 ramp

primary
#A251BB
secondary
#A8CB9D
accent
#D45472
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #A251BB

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

Preview Lab → · Contrast checker → · Palette generator →

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