#A271BC#A271BC

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

Color values

HEX#A271BC
RGBrgb(162, 113, 188)
HSLhsl(279, 36%, 59%)
HSVhsv(279, 40%, 74%)
CMYKcmyk(13.8%, 39.9%, 0%, 26.3%)
CIE-LABlab(55.20, 33.09, -32.01)
CIE-LCHlch(55.20, 46.04, 315.95°)
OKLaboklab(62.71% 0.0831 -0.0884)
OKLCHoklch(62.71% 0.121 313.2)
XYZxyz(29.8810, 23.1231, 50.4563)
Luminance0.2312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271BC #8BBC71
analogous
#7D71BC #A271BC #BC71B1
triadic
#A271BC #BCA271 #71BCA2
tetradic
#A271BC #BC7D71 #8BBC71 #71B1BC
square
#A271BC #BC7D71 #8BBC71 #71B1BC
split-complementary
#A271BC #B1BC71 #71BC7D
monochromatic
#633979 #854DA3 #A271BC #BD9BD0 #D8C4E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A271BC#FFFFFF#000000##000000
##A271BC1.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6381BF
Deuteranopia (green-blind)
#6F85BA
Tritanopia (blue-blind)
#A07B8E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #a271bc;
/* rgb */ color: rgb(162, 113, 188);
/* oklch */ color: oklch(62.7% 0.121 313.2);
Tailwind
colors: {
  custom: {
    50: '#bf9ad0',
    500: '#a271bc',
    950: '#000000',
  },
}
SCSS
$custom: #a271bc;
$custom-light: #bf9ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#a271bc",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 279.2,
    "s": 35.885,
    "l": 59.02
  },
  "oklch": {
    "l": 0.62713,
    "c": 0.12134,
    "h": 313.2
  },
  "luminance": 0.23122
}

Semantic roles & 50–950 ramp

primary
#A271BC
secondary
#C0D3B6
accent
#CC5C83
background
#FBF9FC
surface
#F7F2F9
border
#D0CCD2
text
#120E14
muted
#817E82

Preview Lab

Preview with #A271BC

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

Preview Lab → · Contrast checker → · Palette generator →

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