#A271BD#A271BD

#A271BD is a light, vivid violet. Relative luminance 0.232; OKLCH L 62.8% C 0.123 H 312.8°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#A271BD
RGBrgb(162, 113, 189)
HSLhsl(279, 37%, 59%)
HSVhsv(279, 40%, 74%)
CMYKcmyk(14.3%, 40.2%, 0%, 25.9%)
CIE-LABlab(55.24, 33.31, -32.52)
CIE-LCHlch(55.24, 46.55, 315.69°)
OKLaboklab(62.76% 0.0833 -0.0898)
OKLCHoklch(62.76% 0.123 312.8)
XYZxyz(29.9892, 23.1663, 51.0260)
Luminance0.2317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271BD #8CBD71
analogous
#7C71BD #A271BD #BD71B2
triadic
#A271BD #BDA271 #71BDA2
tetradic
#A271BD #BD7C71 #8CBD71 #71B2BD
square
#A271BD #BD7C71 #8CBD71 #71B2BD
split-complementary
#A271BD #B2BD71 #71BD7C
monochromatic
#63397B #854CA4 #A271BD #BD9BD0 #D9C5E4

Accessibility & contrast

On white

3.73
#A271BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#A271BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271BD
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271BD#FFFFFF#000000##000000
##A271BD1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6382C0
Deuteranopia (green-blind)
#6F85BB
Tritanopia (blue-blind)
#A07C8E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #a271bd;
/* rgb */ color: rgb(162, 113, 189);
/* oklch */ color: oklch(62.8% 0.123 312.8);
Tailwind
colors: {
  custom: {
    50: '#bf9ad1',
    500: '#a271bd',
    950: '#000000',
  },
}
SCSS
$custom: #a271bd;
$custom-light: #bf9ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#a271bd",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 278.684,
    "s": 36.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.62761,
    "c": 0.12254,
    "h": 312.8
  },
  "luminance": 0.23166
}

Semantic roles & 50–950 ramp

primary
#A271BD
secondary
#C1D4B6
accent
#CD5B84
background
#FBF9FC
surface
#F7F2F9
border
#D0CCD2
text
#120E14
muted
#817E82

Preview Lab

Preview with #A271BD

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

Preview Lab → · Contrast checker → · Palette generator →

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