#A151BA#A151BA

#A151BA is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.5% C 0.172 H 317.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#A151BA
RGBrgb(161, 81, 186)
HSLhsl(286, 43%, 52%)
HSVhsv(286, 56%, 73%)
CMYKcmyk(13.4%, 56.5%, 0%, 27.1%)
CIE-LABlab(48.27, 49.62, -41.75)
CIE-LCHlch(48.27, 64.85, 319.92°)
OKLaboklab(57.5% 0.1271 -0.1164)
OKLCHoklch(57.5% 0.172 317.5)
XYZxyz(26.5020, 17.0081, 48.3317)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A151BA #6ABA51
analogous
#6C51BA #A151BA #BA519F
triadic
#A151BA #BAA151 #51BAA1
tetradic
#A151BA #BA6C51 #6ABA51 #519FBA
square
#A151BA #BA6C51 #6ABA51 #519FBA
split-complementary
#A151BA #9FBA51 #51BA6C
monochromatic
#592968 #7E3A93 #A151BA #B97DCB #D0A9DD

Accessibility & contrast

On white

4.77
#A151BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#A151BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A151BA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A151BA#FFFFFF#000000##FFFFFF
##A151BA1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396DBD
Deuteranopia (green-blind)
#5575B7
Tritanopia (blue-blind)
#A0627E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a151ba;
/* rgb */ color: rgb(161, 81, 186);
/* oklch */ color: oklch(57.5% 0.172 317.5);
Tailwind
colors: {
  custom: {
    50: '#bf86cf',
    500: '#a151ba',
    950: '#000000',
  },
}
SCSS
$custom: #a151ba;
$custom-light: #bf86cf;
$custom-dark: #000000;
JSON
{
  "hex": "#a151ba",
  "rgb": {
    "r": 161,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 285.714,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.57503,
    "c": 0.17235,
    "h": 317.5
  },
  "luminance": 0.17007
}

Semantic roles & 50–950 ramp

primary
#A151BA
secondary
#A7CA9D
accent
#D35573
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#120B14
muted
#817C82

Preview Lab

Preview with #A151BA

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

Preview Lab → · Contrast checker → · Palette generator →

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