#A271E6#A271E6

#A271E6 is a light, vivid violet. Relative luminance 0.252; OKLCH L 64.9% C 0.173 H 301.1°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#A271E6
RGBrgb(162, 113, 230)
HSLhsl(265, 70%, 67%)
HSVhsv(265, 51%, 90%)
CMYKcmyk(29.6%, 50.9%, 0%, 9.8%)
CIE-LABlab(57.27, 42.83, -52.52)
CIE-LCHlch(57.27, 67.77, 309.20°)
OKLaboklab(64.94% 0.0891 -0.1479)
OKLCHoklch(64.94% 0.173 301.1)
XYZxyz(35.0850, 25.2047, 77.8642)
Luminance0.2520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271E6 #B5E671
analogous
#717BE6 #A271E6 #DC71E6
triadic
#A271E6 #E6A271 #71E6A2
tetradic
#A271E6 #E6717B #B5E671 #71E6DC
square
#A271E6 #E6717B #B5E671 #71E6DC
split-complementary
#A271E6 #E6DC71 #7BE671
monochromatic
#6221BC #803DDD #A271E6 #C4A5EF #E6D9F8

Accessibility & contrast

On white

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

On black

6.04
#A271E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271E6
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271E6#FFFFFF#000000##000000
##A271E61.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4989EA
Deuteranopia (green-blind)
#5789E3
Tritanopia (blue-blind)
#9587A1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #a271e6;
/* rgb */ color: rgb(162, 113, 230);
/* oklch */ color: oklch(64.9% 0.173 301.1);
Tailwind
colors: {
  custom: {
    50: '#c19bee',
    500: '#a271e6',
    950: '#000000',
  },
}
SCSS
$custom: #a271e6;
$custom-light: #c19bee;
$custom-dark: #000000;
JSON
{
  "hex": "#a271e6",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 230
  },
  "hsl": {
    "h": 265.128,
    "s": 70.06,
    "l": 67.255
  },
  "oklch": {
    "l": 0.64943,
    "c": 0.17267,
    "h": 301.1
  },
  "luminance": 0.25205
}

Semantic roles & 50–950 ramp

primary
#A271E6
secondary
#DCECC7
accent
#D21382
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #A271E6

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

Preview Lab → · Contrast checker → · Palette generator →

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