#A271EB#A271EB

#A271EB is a light, vivid violet. Relative luminance 0.255; OKLCH L 65.2% C 0.179 H 300.0°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#A271EB
RGBrgb(162, 113, 235)
HSLhsl(264, 75%, 68%)
HSVhsv(264, 52%, 92%)
CMYKcmyk(31.1%, 51.9%, 0%, 7.8%)
CIE-LABlab(57.55, 44.06, -54.87)
CIE-LCHlch(57.55, 70.37, 308.77°)
OKLaboklab(65.24% 0.0895 -0.1548)
OKLCHoklch(65.24% 0.179 300)
XYZxyz(35.7973, 25.4896, 81.6152)
Luminance0.2549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271EB #BAEB71
analogous
#717DEB #A271EB #DF71EB
triadic
#A271EB #EBA271 #71EBA2
tetradic
#A271EB #EB717D #BAEB71 #71EBDF
square
#A271EB #EB717D #BAEB71 #71EBDF
split-complementary
#A271EB #EBDF71 #7DEB71
monochromatic
#601CC6 #7F3BE3 #A271EB #C5A7F3 #E8DCFA

Accessibility & contrast

On white

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

On black

6.10
#A271EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271EB
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271EB#FFFFFF#000000##000000
##A271EB1.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#448AEF
Deuteranopia (green-blind)
#5389E8
Tritanopia (blue-blind)
#9388A3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a271eb;
/* rgb */ color: rgb(162, 113, 235);
/* oklch */ color: oklch(65.2% 0.179 300.0);
Tailwind
colors: {
  custom: {
    50: '#c19bf2',
    500: '#a271eb',
    950: '#000000',
  },
}
SCSS
$custom: #a271eb;
$custom-light: #c19bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#a271eb",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 264.098,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.65236,
    "c": 0.17879,
    "h": 300
  },
  "luminance": 0.2549
}

Semantic roles & 50–950 ramp

primary
#A271EB
secondary
#E0EEC9
accent
#D70E87
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271EB

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

Preview Lab → · Contrast checker → · Palette generator →

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