#A271F4#A271F4

#A271F4 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.8% C 0.190 H 298.3°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#A271F4
RGBrgb(162, 113, 244)
HSLhsl(262, 86%, 70%)
HSVhsv(262, 54%, 96%)
CMYKcmyk(33.6%, 53.7%, 0%, 4.3%)
CIE-LABlab(58.06, 46.29, -59.06)
CIE-LCHlch(58.06, 75.04, 308.09°)
OKLaboklab(65.78% 0.0899 -0.1671)
OKLCHoklch(65.78% 0.19 298.3)
XYZxyz(37.1305, 26.0229, 88.6371)
Luminance0.2602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271F4 #C3F471
analogous
#7181F4 #A271F4 #E471F4
triadic
#A271F4 #F4A271 #71F4A2
tetradic
#A271F4 #F47181 #C3F471 #71F4E4
square
#A271F4 #F47181 #C3F471 #71F4E4
split-complementary
#A271F4 #F4E471 #81F471
monochromatic
#5C11DA #7D38F0 #A271F4 #C7AAF8 #ECE3FD

Accessibility & contrast

On white

3.38
#A271F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#A271F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271F4
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271F4#FFFFFF#000000##000000
##A271F41.003.386.206.20
#FFFFFF3.381.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8CF8
Deuteranopia (green-blind)
#4A8AF1
Tritanopia (blue-blind)
#908BA8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a271f4;
/* rgb */ color: rgb(162, 113, 244);
/* oklch */ color: oklch(65.8% 0.190 298.3);
Tailwind
colors: {
  custom: {
    50: '#c19bf8',
    500: '#a271f4',
    950: '#000000',
  },
}
SCSS
$custom: #a271f4;
$custom-light: #c19bf8;
$custom-dark: #000000;
JSON
{
  "hex": "#a271f4",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 244
  },
  "hsl": {
    "h": 262.443,
    "s": 85.621,
    "l": 70
  },
  "oklch": {
    "l": 0.65777,
    "c": 0.18974,
    "h": 298.3
  },
  "luminance": 0.26023
}

Semantic roles & 50–950 ramp

primary
#A271F4
secondary
#E5F3CE
accent
#E2038F
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271F4

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

Preview Lab → · Contrast checker → · Palette generator →

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