#A271FE#A271FE

#A271FE is a light, highly saturated violet. Relative luminance 0.266; OKLCH L 66.4% C 0.202 H 296.5°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#A271FE
RGBrgb(162, 113, 254)
HSLhsl(261, 99%, 72%)
HSVhsv(261, 56%, 100%)
CMYKcmyk(36.2%, 55.5%, 0%, 0.4%)
CIE-LABlab(58.65, 48.81, -63.64)
CIE-LCHlch(58.65, 80.21, 307.49°)
OKLaboklab(66.4% 0.0902 -0.1805)
OKLCHoklch(66.4% 0.202 296.5)
XYZxyz(38.6903, 26.6468, 96.8516)
Luminance0.2665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271FE #CDFE71
analogous
#7187FE #A271FE #E871FE
triadic
#A271FE #FEA271 #71FEA2
tetradic
#A271FE #FE7187 #CDFE71 #71FEE8
square
#A271FE #FE7187 #CDFE71 #71FEE8
split-complementary
#A271FE #FEE871 #87FE71
monochromatic
#5602F3 #7A34FE #A271FE #CAAEFE #EBE1FF

Accessibility & contrast

On white

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

On black

6.33
#A271FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271FE
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271FE#FFFFFF#000000##000000
##A271FE1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D8EFF
Deuteranopia (green-blind)
#3E8BFB
Tritanopia (blue-blind)
#8C8EAD
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #a271fe;
/* rgb */ color: rgb(162, 113, 254);
/* oklch */ color: oklch(66.4% 0.202 296.5);
Tailwind
colors: {
  custom: {
    50: '#c29bff',
    500: '#a271fe',
    950: '#000000',
  },
}
SCSS
$custom: #a271fe;
$custom-light: #c29bff;
$custom-dark: #000000;
JSON
{
  "hex": "#a271fe",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 254
  },
  "hsl": {
    "h": 260.851,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.66399,
    "c": 0.2018,
    "h": 296.5
  },
  "luminance": 0.26647
}

Semantic roles & 50–950 ramp

primary
#A271FE
secondary
#EBF7D4
accent
#E60096
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86

Preview Lab

Preview with #A271FE

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

Preview Lab → · Contrast checker → · Palette generator →

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