#A271D1#A271D1

#A271D1 is a light, vivid violet. Relative luminance 0.241; OKLCH L 63.8% C 0.147 H 306.2°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#A271D1
RGBrgb(162, 113, 209)
HSLhsl(271, 51%, 63%)
HSVhsv(271, 46%, 82%)
CMYKcmyk(22.5%, 45.9%, 0%, 18%)
CIE-LABlab(56.18, 37.83, -42.43)
CIE-LCHlch(56.18, 56.84, 311.72°)
OKLaboklab(63.78% 0.0868 -0.1185)
OKLCHoklch(63.78% 0.147 306.2)
XYZxyz(32.3117, 24.0953, 63.2579)
Luminance0.2409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271D1 #A0D171
analogous
#7271D1 #A271D1 #D171D0
triadic
#A271D1 #D1A271 #71D1A2
tetradic
#A271D1 #D17271 #A0D171 #71D0D1
square
#A271D1 #D17271 #A0D171 #71D0D1
split-complementary
#A271D1 #D0D171 #71D172
monochromatic
#653197 #8443C2 #A271D1 #C09FE0 #DFCDEF

Accessibility & contrast

On white

3.61
#A271D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#A271D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271D1
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271D1#FFFFFF#000000##000000
##A271D11.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5885D4
Deuteranopia (green-blind)
#6587CE
Tritanopia (blue-blind)
#9B8197
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #a271d1;
/* rgb */ color: rgb(162, 113, 209);
/* oklch */ color: oklch(63.8% 0.147 306.2);
Tailwind
colors: {
  custom: {
    50: '#bf9bdf',
    500: '#a271d1',
    950: '#000000',
  },
}
SCSS
$custom: #a271d1;
$custom-light: #bf9bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#a271d1",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 209
  },
  "hsl": {
    "h": 270.625,
    "s": 51.064,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63775,
    "c": 0.14689,
    "h": 306.2
  },
  "luminance": 0.24095
}

Semantic roles & 50–950 ramp

primary
#A271D1
secondary
#CFE0BE
accent
#BE2771
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A271D1

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

Preview Lab → · Contrast checker → · Palette generator →

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