#A271CA#A271CA

#A271CA is a light, vivid violet. Relative luminance 0.238; OKLCH L 63.4% C 0.138 H 308.3°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#A271CA
RGBrgb(162, 113, 202)
HSLhsl(273, 46%, 62%)
HSVhsv(273, 44%, 79%)
CMYKcmyk(19.8%, 44.1%, 0%, 20.8%)
CIE-LABlab(55.84, 36.21, -38.99)
CIE-LCHlch(55.84, 53.22, 312.88°)
OKLaboklab(63.41% 0.0857 -0.1085)
OKLCHoklch(63.41% 0.138 308.3)
XYZxyz(31.4640, 23.7563, 58.7935)
Luminance0.2376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271CA #99CA71
analogous
#7671CA #A271CA #CA71C5
triadic
#A271CA #CAA271 #71CAA2
tetradic
#A271CA #CA7671 #99CA71 #71C5CA
square
#A271CA #CA7671 #99CA71 #71C5CA
split-complementary
#A271CA #C5CA71 #71CA76
monochromatic
#65348C #8545B9 #A271CA #BF9EDB #DCCAEB

Accessibility & contrast

On white

3.65
#A271CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#A271CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271CA
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271CA#FFFFFF#000000##000000
##A271CA1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C84CD
Deuteranopia (green-blind)
#6986C8
Tritanopia (blue-blind)
#9D7F94
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a271ca;
/* rgb */ color: rgb(162, 113, 202);
/* oklch */ color: oklch(63.4% 0.138 308.3);
Tailwind
colors: {
  custom: {
    50: '#bf9bda',
    500: '#a271ca',
    950: '#000000',
  },
}
SCSS
$custom: #a271ca;
$custom-light: #bf9bda;
$custom-dark: #000000;
JSON
{
  "hex": "#a271ca",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 273.034,
    "s": 45.641,
    "l": 61.765
  },
  "oklch": {
    "l": 0.63409,
    "c": 0.13831,
    "h": 308.3
  },
  "luminance": 0.23756
}

Semantic roles & 50–950 ramp

primary
#A271CA
secondary
#CADCBB
accent
#B92D6C
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A271CA

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

Preview Lab → · Contrast checker → · Palette generator →

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