#A271DC#A271DC

#A271DC is a light, vivid violet. Relative luminance 0.247; OKLCH L 64.4% C 0.160 H 303.3°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#A271DC
RGBrgb(162, 113, 220)
HSLhsl(267, 60%, 65%)
HSVhsv(267, 49%, 86%)
CMYKcmyk(26.4%, 48.6%, 0%, 13.7%)
CIE-LABlab(56.74, 40.42, -47.75)
CIE-LCHlch(56.74, 62.56, 310.25°)
OKLaboklab(64.37% 0.0882 -0.134)
OKLCHoklch(64.37% 0.16 303.3)
XYZxyz(33.7209, 24.6590, 70.6794)
Luminance0.2466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271DC #ABDC71
analogous
#7175DC #A271DC #D871DC
triadic
#A271DC #DCA271 #71DCA2
tetradic
#A271DC #DC7175 #ABDC71 #71DCD8
square
#A271DC #DC7175 #ABDC71 #71DCD8
split-complementary
#A271DC #DCD871 #75DC71
monochromatic
#642AA9 #8240D0 #A271DC #C2A2E8 #E2D3F4

Accessibility & contrast

On white

3.54
#A271DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#A271DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271DC
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271DC#FFFFFF#000000##000000
##A271DC1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5187E0
Deuteranopia (green-blind)
#5E88D9
Tritanopia (blue-blind)
#98849C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #a271dc;
/* rgb */ color: rgb(162, 113, 220);
/* oklch */ color: oklch(64.4% 0.160 303.3);
Tailwind
colors: {
  custom: {
    50: '#c09be7',
    500: '#a271dc',
    950: '#000000',
  },
}
SCSS
$custom: #a271dc;
$custom-light: #c09be7;
$custom-dark: #000000;
JSON
{
  "hex": "#a271dc",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 267.477,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.64374,
    "c": 0.16041,
    "h": 303.3
  },
  "luminance": 0.24659
}

Semantic roles & 50–950 ramp

primary
#A271DC
secondary
#D6E6C2
accent
#C81D7A
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #A271DC

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

Preview Lab → · Contrast checker → · Palette generator →

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