#A271FC#A271FC

#A271FC is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.3% C 0.199 H 296.9°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#A271FC
RGBrgb(162, 113, 252)
HSLhsl(261, 96%, 72%)
HSVhsv(261, 55%, 99%)
CMYKcmyk(35.7%, 55.2%, 0%, 1.2%)
CIE-LABlab(58.53, 48.30, -62.73)
CIE-LCHlch(58.53, 79.17, 307.60°)
OKLaboklab(66.27% 0.0901 -0.1779)
OKLCHoklch(66.27% 0.199 296.9)
XYZxyz(38.3717, 26.5193, 95.1737)
Luminance0.2652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271FC #CBFC71
analogous
#7186FC #A271FC #E871FC
triadic
#A271FC #FCA271 #71FCA2
tetradic
#A271FC #FC7186 #CBFC71 #71FCE8
square
#A271FC #FC7186 #CBFC71 #71FCE8
split-complementary
#A271FC #FCE871 #86FC71
monochromatic
#5705EE #7B35FB #A271FC #C9ADFD #EBE1FE

Accessibility & contrast

On white

3.33
#A271FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#A271FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271FC
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271FC#FFFFFF#000000##000000
##A271FC1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#308DFF
Deuteranopia (green-blind)
#418BF9
Tritanopia (blue-blind)
#8D8EAC
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #a271fc;
/* rgb */ color: rgb(162, 113, 252);
/* oklch */ color: oklch(66.3% 0.199 296.9);
Tailwind
colors: {
  custom: {
    50: '#c29bfe',
    500: '#a271fc',
    950: '#000000',
  },
}
SCSS
$custom: #a271fc;
$custom-light: #c29bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#a271fc",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 261.151,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.66273,
    "c": 0.19939,
    "h": 296.9
  },
  "luminance": 0.2652
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A271FC

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

Preview Lab → · Contrast checker → · Palette generator →

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