#A271DB#A271DB

#A271DB is a light, vivid violet. Relative luminance 0.246; OKLCH L 64.3% C 0.159 H 303.6°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#A271DB
RGBrgb(162, 113, 219)
HSLhsl(268, 60%, 65%)
HSVhsv(268, 48%, 86%)
CMYKcmyk(26%, 48.4%, 0%, 14.1%)
CIE-LABlab(56.69, 40.18, -47.27)
CIE-LCHlch(56.69, 62.04, 310.36°)
OKLaboklab(64.32% 0.0881 -0.1326)
OKLCHoklch(64.32% 0.159 303.6)
XYZxyz(33.5888, 24.6062, 69.9840)
Luminance0.2461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271DB #AADB71
analogous
#7175DB #A271DB #D771DB
triadic
#A271DB #DBA271 #71DBA2
tetradic
#A271DB #DB7175 #AADB71 #71DBD7
square
#A271DB #DB7175 #AADB71 #71DBD7
split-complementary
#A271DB #DBD771 #75DB71
monochromatic
#642AA7 #8240CF #A271DB #C2A2E7 #E2D3F4

Accessibility & contrast

On white

3.55
#A271DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#A271DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271DB
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271DB#FFFFFF#000000##000000
##A271DB1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5287DF
Deuteranopia (green-blind)
#5F88D8
Tritanopia (blue-blind)
#98849C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #a271db;
/* rgb */ color: rgb(162, 113, 219);
/* oklch */ color: oklch(64.3% 0.159 303.6);
Tailwind
colors: {
  custom: {
    50: '#c09be6',
    500: '#a271db',
    950: '#000000',
  },
}
SCSS
$custom: #a271db;
$custom-light: #c09be6;
$custom-dark: #000000;
JSON
{
  "hex": "#a271db",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 267.736,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.64318,
    "c": 0.15918,
    "h": 303.6
  },
  "luminance": 0.24606
}

Semantic roles & 50–950 ramp

primary
#A271DB
secondary
#D5E6C2
accent
#C71E79
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #A271DB

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

Preview Lab → · Contrast checker → · Palette generator →

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