#A271AA#A271AA

#A271AA is a mid, moderate purple. Relative luminance 0.224; OKLCH L 61.9% C 0.100 H 321.7°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#A271AA
RGBrgb(162, 113, 170)
HSLhsl(292, 25%, 55%)
HSVhsv(292, 34%, 67%)
CMYKcmyk(4.7%, 33.5%, 0%, 33.3%)
CIE-LABlab(54.44, 29.30, -22.81)
CIE-LCHlch(54.44, 37.13, 322.09°)
OKLaboklab(61.89% 0.0788 -0.0622)
OKLCHoklch(61.89% 0.1 321.7)
XYZxyz(28.0602, 22.3948, 40.8669)
Luminance0.2239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271AA #79AA71
analogous
#8571AA #A271AA #AA7195
triadic
#A271AA #AAA271 #71AAA2
tetradic
#A271AA #AA8571 #79AA71 #7195AA
square
#A271AA #AA8571 #79AA71 #7195AA
split-complementary
#A271AA #95AA71 #71AA85
monochromatic
#5F3C64 #83538B #A271AA #BB97C1 #D4BED8

Accessibility & contrast

On white

3.83
#A271AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#A271AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271AA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271AA#FFFFFF#000000##000000
##A271AA1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B7FAC
Deuteranopia (green-blind)
#7784A8
Tritanopia (blue-blind)
#A47786
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #a271aa;
/* rgb */ color: rgb(162, 113, 170);
/* oklch */ color: oklch(61.9% 0.100 321.7);
Tailwind
colors: {
  custom: {
    50: '#be9ac3',
    500: '#a271aa',
    950: '#000000',
  },
}
SCSS
$custom: #a271aa;
$custom-light: #be9ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#a271aa",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 170
  },
  "hsl": {
    "h": 291.579,
    "s": 25.11,
    "l": 55.49
  },
  "oklch": {
    "l": 0.61894,
    "c": 0.10042,
    "h": 321.7
  },
  "luminance": 0.22394
}

Semantic roles & 50–950 ramp

primary
#A271AA
secondary
#B3C7B0
accent
#C26673
background
#FBF9FC
surface
#F7F2F8
border
#D0CCD1
text
#120E12
muted
#817E81

Preview Lab

Preview with #A271AA

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

Preview Lab → · Contrast checker → · Palette generator →

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