#A271E9#A271E9

#A271E9 is a light, vivid violet. Relative luminance 0.254; OKLCH L 65.1% C 0.176 H 300.4°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#A271E9
RGBrgb(162, 113, 233)
HSLhsl(265, 73%, 68%)
HSVhsv(265, 52%, 91%)
CMYKcmyk(30.5%, 51.5%, 0%, 8.6%)
CIE-LABlab(57.44, 43.57, -53.93)
CIE-LCHlch(57.44, 69.33, 308.93°)
OKLaboklab(65.12% 0.0893 -0.152)
OKLCHoklch(65.12% 0.176 300.4)
XYZxyz(35.5099, 25.3746, 80.1020)
Luminance0.2537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271E9 #B8E971
analogous
#717CE9 #A271E9 #DE71E9
triadic
#A271E9 #E9A271 #71E9A2
tetradic
#A271E9 #E9717C #B8E971 #71E9DE
square
#A271E9 #E9717C #B8E971 #71E9DE
split-complementary
#A271E9 #E9DE71 #7CE971
monochromatic
#611EC2 #7F3CE1 #A271E9 #C5A6F1 #E7DBF9

Accessibility & contrast

On white

3.46
#A271E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#A271E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271E9
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271E9#FFFFFF#000000##000000
##A271E91.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4689ED
Deuteranopia (green-blind)
#5489E6
Tritanopia (blue-blind)
#9488A2
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a271e9;
/* rgb */ color: rgb(162, 113, 233);
/* oklch */ color: oklch(65.1% 0.176 300.4);
Tailwind
colors: {
  custom: {
    50: '#c19bf0',
    500: '#a271e9',
    950: '#000000',
  },
}
SCSS
$custom: #a271e9;
$custom-light: #c19bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#a271e9",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 233
  },
  "hsl": {
    "h": 264.5,
    "s": 73.171,
    "l": 67.843
  },
  "oklch": {
    "l": 0.65118,
    "c": 0.17634,
    "h": 300.4
  },
  "luminance": 0.25375
}

Semantic roles & 50–950 ramp

primary
#A271E9
secondary
#DEEDC8
accent
#D51085
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271E9

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

Preview Lab → · Contrast checker → · Palette generator →

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