#A271EA#A271EA

#A271EA is a light, vivid violet. Relative luminance 0.254; OKLCH L 65.2% C 0.178 H 300.2°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#A271EA
RGBrgb(162, 113, 234)
HSLhsl(264, 74%, 68%)
HSVhsv(264, 52%, 92%)
CMYKcmyk(30.8%, 51.7%, 0%, 8.2%)
CIE-LABlab(57.49, 43.81, -54.40)
CIE-LCHlch(57.49, 69.85, 308.85°)
OKLaboklab(65.18% 0.0894 -0.1534)
OKLCHoklch(65.18% 0.178 300.2)
XYZxyz(35.6532, 25.4319, 80.8565)
Luminance0.2543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271EA #B9EA71
analogous
#717CEA #A271EA #DF71EA
triadic
#A271EA #EAA271 #71EAA2
tetradic
#A271EA #EA717C #B9EA71 #71EADF
square
#A271EA #EA717C #B9EA71 #71EADF
split-complementary
#A271EA #EADF71 #7CEA71
monochromatic
#601DC4 #7F3CE2 #A271EA #C5A6F2 #E8DCFA

Accessibility & contrast

On white

3.45
#A271EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#A271EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271EA
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271EA#FFFFFF#000000##000000
##A271EA1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#458AEE
Deuteranopia (green-blind)
#5389E7
Tritanopia (blue-blind)
#9388A3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a271ea;
/* rgb */ color: rgb(162, 113, 234);
/* oklch */ color: oklch(65.2% 0.178 300.2);
Tailwind
colors: {
  custom: {
    50: '#c19bf1',
    500: '#a271ea',
    950: '#000000',
  },
}
SCSS
$custom: #a271ea;
$custom-light: #c19bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#a271ea",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 264.298,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65177,
    "c": 0.17756,
    "h": 300.2
  },
  "luminance": 0.25432
}

Semantic roles & 50–950 ramp

primary
#A271EA
secondary
#DFEEC9
accent
#D60F86
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271EA

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

Preview Lab → · Contrast checker → · Palette generator →

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