#A271F8#A271F8

#A271F8 is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.0% C 0.195 H 297.6°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#A271F8
RGBrgb(162, 113, 248)
HSLhsl(262, 91%, 71%)
HSVhsv(262, 54%, 97%)
CMYKcmyk(34.7%, 54.4%, 0%, 2.7%)
CIE-LABlab(58.29, 47.30, -60.90)
CIE-LCHlch(58.29, 77.11, 307.83°)
OKLaboklab(66.02% 0.09 -0.1725)
OKLCHoklch(66.02% 0.195 297.6)
XYZxyz(37.7445, 26.2684, 91.8705)
Luminance0.2627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271F8 #C7F871
analogous
#7183F8 #A271F8 #E671F8
triadic
#A271F8 #F8A271 #71F8A2
tetradic
#A271F8 #F87183 #C7F871 #71F8E6
square
#A271F8 #F87183 #C7F871 #71F8E6
split-complementary
#A271F8 #F8E671 #83F871
monochromatic
#5A0BE3 #7C37F5 #A271F8 #C8ABFB #ECE2FE

Accessibility & contrast

On white

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

On black

6.25
#A271F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271F8
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271F8#FFFFFF#000000##000000
##A271F81.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#368DFD
Deuteranopia (green-blind)
#468BF5
Tritanopia (blue-blind)
#8F8CAA
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a271f8;
/* rgb */ color: rgb(162, 113, 248);
/* oklch */ color: oklch(66.0% 0.195 297.6);
Tailwind
colors: {
  custom: {
    50: '#c29bfb',
    500: '#a271f8',
    950: '#000000',
  },
}
SCSS
$custom: #a271f8;
$custom-light: #c29bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#a271f8",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 261.778,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66023,
    "c": 0.19457,
    "h": 297.6
  },
  "luminance": 0.26269
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A271F8

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

Preview Lab → · Contrast checker → · Palette generator →

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