#A271DF#A271DF

#A271DF is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.5% C 0.164 H 302.6°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#A271DF
RGBrgb(162, 113, 223)
HSLhsl(267, 63%, 66%)
HSVhsv(267, 49%, 87%)
CMYKcmyk(27.4%, 49.3%, 0%, 12.5%)
CIE-LABlab(56.90, 41.14, -49.19)
CIE-LCHlch(56.90, 64.13, 309.91°)
OKLaboklab(64.54% 0.0885 -0.1382)
OKLCHoklch(64.54% 0.164 302.6)
XYZxyz(34.1217, 24.8193, 72.7907)
Luminance0.2482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271DF #AEDF71
analogous
#7177DF #A271DF #D971DF
triadic
#A271DF #DFA271 #71DFA2
tetradic
#A271DF #DF7177 #AEDF71 #71DFD9
square
#A271DF #DF7177 #AEDF71 #71DFD9
split-complementary
#A271DF #DFD971 #77DF71
monochromatic
#6327AE #813FD4 #A271DF #C3A3EA #E3D5F6

Accessibility & contrast

On white

3.52
#A271DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#A271DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271DF
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271DF#FFFFFF#000000##000000
##A271DF1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F88E3
Deuteranopia (green-blind)
#5C88DC
Tritanopia (blue-blind)
#97859E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #a271df;
/* rgb */ color: rgb(162, 113, 223);
/* oklch */ color: oklch(64.5% 0.164 302.6);
Tailwind
colors: {
  custom: {
    50: '#c09be9',
    500: '#a271df',
    950: '#000000',
  },
}
SCSS
$custom: #a271df;
$custom-light: #c09be9;
$custom-dark: #000000;
JSON
{
  "hex": "#a271df",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 266.727,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64542,
    "c": 0.16409,
    "h": 302.6
  },
  "luminance": 0.24819
}

Semantic roles & 50–950 ramp

primary
#A271DF
secondary
#D8E8C4
accent
#CB1B7C
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #A271DF

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

Preview Lab → · Contrast checker → · Palette generator →

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