#A271CC#A271CC

#A271CC is a light, vivid violet. Relative luminance 0.239; OKLCH L 63.5% C 0.141 H 307.7°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#A271CC
RGBrgb(162, 113, 204)
HSLhsl(272, 47%, 62%)
HSVhsv(272, 45%, 80%)
CMYKcmyk(20.6%, 44.6%, 0%, 20%)
CIE-LABlab(55.94, 36.67, -39.98)
CIE-LCHlch(55.94, 54.25, 312.53°)
OKLaboklab(63.51% 0.0861 -0.1114)
OKLCHoklch(63.51% 0.141 307.7)
XYZxyz(31.7024, 23.8516, 60.0488)
Luminance0.2385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271CC #9BCC71
analogous
#7571CC #A271CC #CC71C8
triadic
#A271CC #CCA271 #71CCA2
tetradic
#A271CC #CC7571 #9BCC71 #71C8CC
square
#A271CC #CC7571 #9BCC71 #71C8CC
split-complementary
#A271CC #C8CC71 #71CC75
monochromatic
#65338F #8544BC #A271CC #BF9EDC #DDCBEC

Accessibility & contrast

On white

3.64
#A271CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#A271CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271CC
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271CC#FFFFFF#000000##000000
##A271CC1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B84CF
Deuteranopia (green-blind)
#6887CA
Tritanopia (blue-blind)
#9C8095
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a271cc;
/* rgb */ color: rgb(162, 113, 204);
/* oklch */ color: oklch(63.5% 0.141 307.7);
Tailwind
colors: {
  custom: {
    50: '#bf9bdc',
    500: '#a271cc',
    950: '#000000',
  },
}
SCSS
$custom: #a271cc;
$custom-light: #bf9bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#a271cc",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 272.308,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63512,
    "c": 0.14076,
    "h": 307.7
  },
  "luminance": 0.23851
}

Semantic roles & 50–950 ramp

primary
#A271CC
secondary
#CBDDBC
accent
#BA2B6D
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A271CC

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

Preview Lab → · Contrast checker → · Palette generator →

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