#A271FD#A271FD

#A271FD is a light, highly saturated violet. Relative luminance 0.266; OKLCH L 66.3% C 0.201 H 296.7°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#A271FD
RGBrgb(162, 113, 253)
HSLhsl(261, 97%, 72%)
HSVhsv(261, 55%, 99%)
CMYKcmyk(36%, 55.3%, 0%, 0.8%)
CIE-LABlab(58.59, 48.56, -63.19)
CIE-LCHlch(58.59, 79.69, 307.54°)
OKLaboklab(66.34% 0.0901 -0.1792)
OKLCHoklch(66.34% 0.201 296.7)
XYZxyz(38.5305, 26.5829, 96.0105)
Luminance0.2658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271FD #CCFD71
analogous
#7186FD #A271FD #E871FD
triadic
#A271FD #FDA271 #71FDA2
tetradic
#A271FD #FD7186 #CCFD71 #71FDE8
square
#A271FD #FD7186 #CCFD71 #71FDE8
split-complementary
#A271FD #FDE871 #86FD71
monochromatic
#5603F0 #7A35FC #A271FD #CAADFE #EBE1FF

Accessibility & contrast

On white

3.32
#A271FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#A271FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271FD
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271FD#FFFFFF#000000##000000
##A271FD1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E8EFF
Deuteranopia (green-blind)
#408BFA
Tritanopia (blue-blind)
#8D8EAC
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #a271fd;
/* rgb */ color: rgb(162, 113, 253);
/* oklch */ color: oklch(66.3% 0.201 296.7);
Tailwind
colors: {
  custom: {
    50: '#c29bff',
    500: '#a271fd',
    950: '#000000',
  },
}
SCSS
$custom: #a271fd;
$custom-light: #c29bff;
$custom-dark: #000000;
JSON
{
  "hex": "#a271fd",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 253
  },
  "hsl": {
    "h": 261,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66336,
    "c": 0.20059,
    "h": 296.7
  },
  "luminance": 0.26583
}

Semantic roles & 50–950 ramp

primary
#A271FD
secondary
#EAF7D3
accent
#E60095
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86

Preview Lab

Preview with #A271FD

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

Preview Lab → · Contrast checker → · Palette generator →

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