#A271F7#A271F7

#A271F7 is a light, vivid violet. Relative luminance 0.262; OKLCH L 66.0% C 0.193 H 297.7°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#A271F7
RGBrgb(162, 113, 247)
HSLhsl(262, 89%, 71%)
HSVhsv(262, 54%, 97%)
CMYKcmyk(34.4%, 54.3%, 0%, 3.1%)
CIE-LABlab(58.23, 47.04, -60.44)
CIE-LCHlch(58.23, 76.59, 307.90°)
OKLaboklab(65.96% 0.09 -0.1711)
OKLCHoklch(65.96% 0.193 297.7)
XYZxyz(37.5897, 26.2066, 91.0556)
Luminance0.2621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271F7 #C6F771
analogous
#7183F7 #A271F7 #E571F7
triadic
#A271F7 #F7A271 #71F7A2
tetradic
#A271F7 #F77183 #C6F771 #71F7E5
square
#A271F7 #F77183 #C6F771 #71F7E5
split-complementary
#A271F7 #F7E571 #83F771
monochromatic
#5A0DE1 #7C37F4 #A271F7 #C8ABFA #ECE2FD

Accessibility & contrast

On white

3.36
#A271F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#A271F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271F7
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271F7#FFFFFF#000000##000000
##A271F71.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#378CFC
Deuteranopia (green-blind)
#478BF4
Tritanopia (blue-blind)
#8F8CA9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a271f7;
/* rgb */ color: rgb(162, 113, 247);
/* oklch */ color: oklch(66.0% 0.193 297.7);
Tailwind
colors: {
  custom: {
    50: '#c29bfa',
    500: '#a271f7',
    950: '#000000',
  },
}
SCSS
$custom: #a271f7;
$custom-light: #c29bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#a271f7",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 261.94,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65961,
    "c": 0.19336,
    "h": 297.7
  },
  "luminance": 0.26207
}

Semantic roles & 50–950 ramp

primary
#A271F7
secondary
#E7F4D0
accent
#E60092
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271F7

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

Preview Lab → · Contrast checker → · Palette generator →

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