#A271BB#A271BB

#A271BB is a light, vivid violet. Relative luminance 0.231; OKLCH L 62.7% C 0.120 H 313.6°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#A271BB
RGBrgb(162, 113, 187)
HSLhsl(280, 35%, 59%)
HSVhsv(280, 40%, 73%)
CMYKcmyk(13.4%, 39.6%, 0%, 26.7%)
CIE-LABlab(55.15, 32.87, -31.51)
CIE-LCHlch(55.15, 45.53, 316.22°)
OKLaboklab(62.67% 0.0829 -0.087)
OKLCHoklch(62.67% 0.12 313.6)
XYZxyz(29.7736, 23.0801, 49.8905)
Luminance0.2308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271BB #8ABB71
analogous
#7D71BB #A271BB #BB71AF
triadic
#A271BB #BBA271 #71BBA2
tetradic
#A271BB #BB7D71 #8ABB71 #71AFBB
square
#A271BB #BB7D71 #8ABB71 #71AFBB
split-complementary
#A271BB #AFBB71 #71BB7D
monochromatic
#633A78 #854DA1 #A271BB #BD9ACF #D8C4E3

Accessibility & contrast

On white

3.74
#A271BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#A271BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271BB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271BB#FFFFFF#000000##000000
##A271BB1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6481BE
Deuteranopia (green-blind)
#7085B9
Tritanopia (blue-blind)
#A07B8D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #a271bb;
/* rgb */ color: rgb(162, 113, 187);
/* oklch */ color: oklch(62.7% 0.120 313.6);
Tailwind
colors: {
  custom: {
    50: '#bf9acf',
    500: '#a271bb',
    950: '#000000',
  },
}
SCSS
$custom: #a271bb;
$custom-light: #bf9acf;
$custom-dark: #000000;
JSON
{
  "hex": "#a271bb",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 279.73,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.62666,
    "c": 0.12015,
    "h": 313.6
  },
  "luminance": 0.23079
}

Semantic roles & 50–950 ramp

primary
#A271BB
secondary
#BFD2B5
accent
#CB5D82
background
#FBF9FC
surface
#F7F2F9
border
#D0CCD2
text
#120E14
muted
#817E82

Preview Lab

Preview with #A271BB

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

Preview Lab → · Contrast checker → · Palette generator →

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