#A271EF#A271EF

#A271EF is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.5% C 0.184 H 299.2°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#A271EF
RGBrgb(162, 113, 239)
HSLhsl(263, 80%, 69%)
HSVhsv(263, 53%, 94%)
CMYKcmyk(32.2%, 52.7%, 0%, 6.3%)
CIE-LABlab(57.77, 45.05, -56.74)
CIE-LCHlch(57.77, 72.45, 308.45°)
OKLaboklab(65.47% 0.0897 -0.1603)
OKLCHoklch(65.47% 0.184 299.2)
XYZxyz(36.3817, 25.7233, 84.6930)
Luminance0.2572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271EF #BEEF71
analogous
#717FEF #A271EF #E171EF
triadic
#A271EF #EFA271 #71EFA2
tetradic
#A271EF #EF717F #BEEF71 #71EFE1
square
#A271EF #EF717F #BEEF71 #71EFE1
split-complementary
#A271EF #EFE171 #7FEF71
monochromatic
#5E17CE #7E3AE9 #A271EF #C6A8F5 #EADFFB

Accessibility & contrast

On white

3.42
#A271EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#A271EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271EF
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271EF#FFFFFF#000000##000000
##A271EF1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#408BF3
Deuteranopia (green-blind)
#4F8AEC
Tritanopia (blue-blind)
#928AA5
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a271ef;
/* rgb */ color: rgb(162, 113, 239);
/* oklch */ color: oklch(65.5% 0.184 299.2);
Tailwind
colors: {
  custom: {
    50: '#c19bf5',
    500: '#a271ef',
    950: '#000000',
  },
}
SCSS
$custom: #a271ef;
$custom-light: #c19bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#a271ef",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 263.333,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.65474,
    "c": 0.18365,
    "h": 299.2
  },
  "luminance": 0.25724
}

Semantic roles & 50–950 ramp

primary
#A271EF
secondary
#E2F0CB
accent
#DC098A
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271EF

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

Preview Lab → · Contrast checker → · Palette generator →

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