#A271D6#A271D6

#A271D6 is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.0% C 0.153 H 304.9°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#A271D6
RGBrgb(162, 113, 214)
HSLhsl(269, 55%, 64%)
HSVhsv(269, 47%, 84%)
CMYKcmyk(24.3%, 47.2%, 0%, 16.1%)
CIE-LABlab(56.43, 39.00, -44.86)
CIE-LCHlch(56.43, 59.44, 311.00°)
OKLaboklab(64.04% 0.0875 -0.1256)
OKLCHoklch(64.04% 0.153 304.9)
XYZxyz(32.9405, 24.3468, 66.5693)
Luminance0.2435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271D6 #A5D671
analogous
#7173D6 #A271D6 #D571D6
triadic
#A271D6 #D6A271 #71D6A2
tetradic
#A271D6 #D67173 #A5D671 #71D6D5
square
#A271D6 #D67173 #A5D671 #71D6D5
split-complementary
#A271D6 #D6D571 #73D671
monochromatic
#652E9F #8342C8 #A271D6 #C1A0E4 #E0D0F1

Accessibility & contrast

On white

3.58
#A271D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#A271D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271D6
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271D6#FFFFFF#000000##000000
##A271D61.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5586DA
Deuteranopia (green-blind)
#6287D3
Tritanopia (blue-blind)
#998299
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #a271d6;
/* rgb */ color: rgb(162, 113, 214);
/* oklch */ color: oklch(64.0% 0.153 304.9);
Tailwind
colors: {
  custom: {
    50: '#c09be3',
    500: '#a271d6',
    950: '#000000',
  },
}
SCSS
$custom: #a271d6;
$custom-light: #c09be3;
$custom-dark: #000000;
JSON
{
  "hex": "#a271d6",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 214
  },
  "hsl": {
    "h": 269.109,
    "s": 55.191,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64043,
    "c": 0.15303,
    "h": 304.9
  },
  "luminance": 0.24347
}

Semantic roles & 50–950 ramp

primary
#A271D6
secondary
#D2E3C0
accent
#C32375
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A271D6

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

Preview Lab → · Contrast checker → · Palette generator →

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