#A271BE#A271BE

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

Color values

HEX#A271BE
RGBrgb(162, 113, 190)
HSLhsl(278, 37%, 59%)
HSVhsv(278, 41%, 75%)
CMYKcmyk(14.7%, 40.5%, 0%, 25.5%)
CIE-LABlab(55.29, 33.53, -33.02)
CIE-LCHlch(55.29, 47.06, 315.44°)
OKLaboklab(62.81% 0.0835 -0.0913)
OKLCHoklch(62.81% 0.124 312.5)
XYZxyz(30.0981, 23.2099, 51.5996)
Luminance0.2321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271BE #8DBE71
analogous
#7C71BE #A271BE #BE71B4
triadic
#A271BE #BEA271 #71BEA2
tetradic
#A271BE #BE7C71 #8DBE71 #71B4BE
square
#A271BE #BE7C71 #8DBE71 #71B4BE
split-complementary
#A271BE #B4BE71 #71BE7C
monochromatic
#63397C #854CA6 #A271BE #BD9BD1 #D9C5E4

Accessibility & contrast

On white

3.72
#A271BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#A271BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271BE
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271BE#FFFFFF#000000##000000
##A271BE1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6282C1
Deuteranopia (green-blind)
#6F86BC
Tritanopia (blue-blind)
#9F7C8E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #a271be;
/* rgb */ color: rgb(162, 113, 190);
/* oklch */ color: oklch(62.8% 0.124 312.5);
Tailwind
colors: {
  custom: {
    50: '#bf9ad2',
    500: '#a271be',
    950: '#000000',
  },
}
SCSS
$custom: #a271be;
$custom-light: #bf9ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#a271be",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 190
  },
  "hsl": {
    "h": 278.182,
    "s": 37.198,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6281,
    "c": 0.12375,
    "h": 312.5
  },
  "luminance": 0.23209
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A271BE

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

Preview Lab → · Contrast checker → · Palette generator →

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