#A271DD#A271DD

#A271DD is a light, vivid violet. Relative luminance 0.247; OKLCH L 64.4% C 0.162 H 303.1°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#A271DD
RGBrgb(162, 113, 221)
HSLhsl(267, 61%, 65%)
HSVhsv(267, 49%, 87%)
CMYKcmyk(26.7%, 48.9%, 0%, 13.3%)
CIE-LABlab(56.79, 40.66, -48.23)
CIE-LCHlch(56.79, 63.08, 310.13°)
OKLaboklab(64.43% 0.0883 -0.1354)
OKLCHoklch(64.43% 0.162 303.1)
XYZxyz(33.8537, 24.7121, 71.3790)
Luminance0.2471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271DD #ACDD71
analogous
#7176DD #A271DD #D871DD
triadic
#A271DD #DDA271 #71DDA2
tetradic
#A271DD #DD7176 #ACDD71 #71DDD8
square
#A271DD #DD7176 #ACDD71 #71DDD8
split-complementary
#A271DD #DDD871 #76DD71
monochromatic
#6429AB #8240D1 #A271DD #C2A2E9 #E3D4F5

Accessibility & contrast

On white

3.53
#A271DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#A271DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271DD
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271DD#FFFFFF#000000##000000
##A271DD1.003.535.945.94
#FFFFFF3.531.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5087E1
Deuteranopia (green-blind)
#5D88DA
Tritanopia (blue-blind)
#97849D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #a271dd;
/* rgb */ color: rgb(162, 113, 221);
/* oklch */ color: oklch(64.4% 0.162 303.1);
Tailwind
colors: {
  custom: {
    50: '#c09be8',
    500: '#a271dd',
    950: '#000000',
  },
}
SCSS
$custom: #a271dd;
$custom-light: #c09be8;
$custom-dark: #000000;
JSON
{
  "hex": "#a271dd",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 267.222,
    "s": 61.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6443,
    "c": 0.16163,
    "h": 303.1
  },
  "luminance": 0.24712
}

Semantic roles & 50–950 ramp

primary
#A271DD
secondary
#D7E7C3
accent
#C91C7B
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #A271DD

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

Preview Lab → · Contrast checker → · Palette generator →

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