#A271FA#A271FA

#A271FA is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.1% C 0.197 H 297.2°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#A271FA
RGBrgb(162, 113, 250)
HSLhsl(261, 93%, 71%)
HSVhsv(261, 55%, 98%)
CMYKcmyk(35.2%, 54.8%, 0%, 2%)
CIE-LABlab(58.41, 47.80, -61.82)
CIE-LCHlch(58.41, 78.14, 307.71°)
OKLaboklab(66.15% 0.0901 -0.1752)
OKLCHoklch(66.15% 0.197 297.2)
XYZxyz(38.0564, 26.3932, 93.5133)
Luminance0.2639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271FA #C9FA71
analogous
#7184FA #A271FA #E671FA
triadic
#A271FA #FAA271 #71FAA2
tetradic
#A271FA #FA7184 #C9FA71 #71FAE6
square
#A271FA #FA7184 #C9FA71 #71FAE6
split-complementary
#A271FA #FAE671 #84FA71
monochromatic
#5808E8 #7B36F8 #A271FA #C9ACFC #ECE1FE

Accessibility & contrast

On white

3.34
#A271FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#A271FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271FA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271FA#FFFFFF#000000##000000
##A271FA1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#338DFF
Deuteranopia (green-blind)
#438BF7
Tritanopia (blue-blind)
#8E8DAB
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a271fa;
/* rgb */ color: rgb(162, 113, 250);
/* oklch */ color: oklch(66.1% 0.197 297.2);
Tailwind
colors: {
  custom: {
    50: '#c29bfd',
    500: '#a271fa',
    950: '#000000',
  },
}
SCSS
$custom: #a271fa;
$custom-light: #c29bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#a271fa",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 261.46,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66148,
    "c": 0.19699,
    "h": 297.2
  },
  "luminance": 0.26394
}

Semantic roles & 50–950 ramp

primary
#A271FA
secondary
#E9F5D1
accent
#E60093
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86

Preview Lab

Preview with #A271FA

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

Preview Lab → · Contrast checker → · Palette generator →

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