#A271CB#A271CB

#A271CB is a light, vivid violet. Relative luminance 0.238; OKLCH L 63.5% C 0.140 H 308.0°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#A271CB
RGBrgb(162, 113, 203)
HSLhsl(273, 46%, 62%)
HSVhsv(273, 44%, 80%)
CMYKcmyk(20.2%, 44.3%, 0%, 20.4%)
CIE-LABlab(55.89, 36.44, -39.49)
CIE-LCHlch(55.89, 53.73, 312.70°)
OKLaboklab(63.46% 0.0859 -0.11)
OKLCHoklch(63.46% 0.14 308)
XYZxyz(31.5828, 23.8038, 59.4191)
Luminance0.2380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271CB #9ACB71
analogous
#7571CB #A271CB #CB71C7
triadic
#A271CB #CBA271 #71CBA2
tetradic
#A271CB #CB7571 #9ACB71 #71C7CB
square
#A271CB #CB7571 #9ACB71 #71C7CB
split-complementary
#A271CB #C7CB71 #71CB75
monochromatic
#65348E #8544BB #A271CB #BF9EDB #DDCBEC

Accessibility & contrast

On white

3.65
#A271CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#A271CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271CB
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271CB#FFFFFF#000000##000000
##A271CB1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C84CE
Deuteranopia (green-blind)
#6887C9
Tritanopia (blue-blind)
#9C7F94
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a271cb;
/* rgb */ color: rgb(162, 113, 203);
/* oklch */ color: oklch(63.5% 0.140 308.0);
Tailwind
colors: {
  custom: {
    50: '#bf9bdb',
    500: '#a271cb',
    950: '#000000',
  },
}
SCSS
$custom: #a271cb;
$custom-light: #bf9bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#a271cb",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 272.667,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.6346,
    "c": 0.13954,
    "h": 308
  },
  "luminance": 0.23803
}

Semantic roles & 50–950 ramp

primary
#A271CB
secondary
#CADCBB
accent
#BA2C6C
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A271CB

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

Preview Lab → · Contrast checker → · Palette generator →

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