#A271EC#A271EC

#A271EC is a light, vivid violet. Relative luminance 0.255; OKLCH L 65.3% C 0.180 H 299.8°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#A271EC
RGBrgb(162, 113, 236)
HSLhsl(264, 76%, 68%)
HSVhsv(264, 52%, 93%)
CMYKcmyk(31.4%, 52.1%, 0%, 7.5%)
CIE-LABlab(57.60, 44.31, -55.34)
CIE-LCHlch(57.60, 70.89, 308.68°)
OKLaboklab(65.3% 0.0895 -0.1562)
OKLCHoklch(65.3% 0.18 299.8)
XYZxyz(35.9421, 25.5475, 82.3782)
Luminance0.2555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271EC #BBEC71
analogous
#717DEC #A271EC #DF71EC
triadic
#A271EC #ECA271 #71ECA2
tetradic
#A271EC #EC717D #BBEC71 #71ECDF
square
#A271EC #EC717D #BBEC71 #71ECDF
split-complementary
#A271EC #ECDF71 #7DEC71
monochromatic
#601BC8 #7F3BE5 #A271EC #C5A7F3 #E9DDFA

Accessibility & contrast

On white

3.44
#A271EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#A271EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271EC
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271EC#FFFFFF#000000##000000
##A271EC1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#448AF0
Deuteranopia (green-blind)
#5289E9
Tritanopia (blue-blind)
#9389A4
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a271ec;
/* rgb */ color: rgb(162, 113, 236);
/* oklch */ color: oklch(65.3% 0.180 299.8);
Tailwind
colors: {
  custom: {
    50: '#c19bf3',
    500: '#a271ec',
    950: '#000000',
  },
}
SCSS
$custom: #a271ec;
$custom-light: #c19bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#a271ec",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 263.902,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.65295,
    "c": 0.18,
    "h": 299.8
  },
  "luminance": 0.25548
}

Semantic roles & 50–950 ramp

primary
#A271EC
secondary
#E0EFCA
accent
#D90D87
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271EC

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

Preview Lab → · Contrast checker → · Palette generator →

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