#A271F9#A271F9

#A271F9 is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.1% C 0.196 H 297.4°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#A271F9
RGBrgb(162, 113, 249)
HSLhsl(262, 92%, 71%)
HSVhsv(262, 55%, 98%)
CMYKcmyk(34.9%, 54.6%, 0%, 2.4%)
CIE-LABlab(58.35, 47.55, -61.36)
CIE-LCHlch(58.35, 77.63, 307.77°)
OKLaboklab(66.09% 0.0901 -0.1738)
OKLCHoklch(66.09% 0.196 297.4)
XYZxyz(37.9000, 26.3307, 92.6897)
Luminance0.2633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271F9 #C8F971
analogous
#7184F9 #A271F9 #E671F9
triadic
#A271F9 #F9A271 #71F9A2
tetradic
#A271F9 #F97184 #C8F971 #71F9E6
square
#A271F9 #F97184 #C8F971 #71F9E6
split-complementary
#A271F9 #F9E671 #84F971
monochromatic
#590AE6 #7C36F7 #A271F9 #C8ACFB #ECE2FE

Accessibility & contrast

On white

3.35
#A271F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#A271F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271F9
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271F9#FFFFFF#000000##000000
##A271F91.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#348DFE
Deuteranopia (green-blind)
#458BF6
Tritanopia (blue-blind)
#8E8DAA
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a271f9;
/* rgb */ color: rgb(162, 113, 249);
/* oklch */ color: oklch(66.1% 0.196 297.4);
Tailwind
colors: {
  custom: {
    50: '#c29bfc',
    500: '#a271f9',
    950: '#000000',
  },
}
SCSS
$custom: #a271f9;
$custom-light: #c29bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#a271f9",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 249
  },
  "hsl": {
    "h": 261.618,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.66085,
    "c": 0.19577,
    "h": 297.4
  },
  "luminance": 0.26331
}

Semantic roles & 50–950 ramp

primary
#A271F9
secondary
#E8F5D1
accent
#E60093
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271F9

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

Preview Lab → · Contrast checker → · Palette generator →

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