#A271E5#A271E5

#A271E5 is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.9% C 0.171 H 301.3°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#A271E5
RGBrgb(162, 113, 229)
HSLhsl(265, 69%, 67%)
HSVhsv(265, 51%, 90%)
CMYKcmyk(29.3%, 50.7%, 0%, 10.2%)
CIE-LABlab(57.22, 42.59, -52.04)
CIE-LCHlch(57.22, 67.25, 309.30°)
OKLaboklab(64.89% 0.089 -0.1465)
OKLCHoklch(64.89% 0.171 301.3)
XYZxyz(34.9450, 25.1487, 77.1267)
Luminance0.2515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271E5 #B4E571
analogous
#717AE5 #A271E5 #DC71E5
triadic
#A271E5 #E5A271 #71E5A2
tetradic
#A271E5 #E5717A #B4E571 #71E5DC
square
#A271E5 #E5717A #B4E571 #71E5DC
split-complementary
#A271E5 #E5DC71 #7AE571
monochromatic
#6222BA #803DDC #A271E5 #C4A5EE #E6D8F8

Accessibility & contrast

On white

3.48
#A271E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#A271E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271E5
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271E5#FFFFFF#000000##000000
##A271E51.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A89E9
Deuteranopia (green-blind)
#5789E2
Tritanopia (blue-blind)
#9587A1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #a271e5;
/* rgb */ color: rgb(162, 113, 229);
/* oklch */ color: oklch(64.9% 0.171 301.3);
Tailwind
colors: {
  custom: {
    50: '#c09bee',
    500: '#a271e5',
    950: '#000000',
  },
}
SCSS
$custom: #a271e5;
$custom-light: #c09bee;
$custom-dark: #000000;
JSON
{
  "hex": "#a271e5",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 229
  },
  "hsl": {
    "h": 265.345,
    "s": 69.048,
    "l": 67.059
  },
  "oklch": {
    "l": 0.64885,
    "c": 0.17145,
    "h": 301.3
  },
  "luminance": 0.25149
}

Semantic roles & 50–950 ramp

primary
#A271E5
secondary
#DCEBC6
accent
#D11481
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #A271E5

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

Preview Lab → · Contrast checker → · Palette generator →

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