#A271F6#A271F6

#A271F6 is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.9% C 0.192 H 297.9°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A271F6
RGBrgb(162, 113, 246)
HSLhsl(262, 88%, 70%)
HSVhsv(262, 54%, 96%)
CMYKcmyk(34.1%, 54.1%, 0%, 3.5%)
CIE-LABlab(58.17, 46.79, -59.98)
CIE-LCHlch(58.17, 76.07, 307.96°)
OKLaboklab(65.9% 0.09 -0.1698)
OKLCHoklch(65.9% 0.192 297.9)
XYZxyz(37.4359, 26.1450, 90.2451)
Luminance0.2615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271F6 #C5F671
analogous
#7183F6 #A271F6 #E471F6
triadic
#A271F6 #F6A271 #71F6A2
tetradic
#A271F6 #F67183 #C5F671 #71F6E4
square
#A271F6 #F67183 #C5F671 #71F6E4
split-complementary
#A271F6 #F6E471 #83F671
monochromatic
#5B0EDE #7C37F2 #A271F6 #C8ABFA #ECE2FD

Accessibility & contrast

On white

3.37
#A271F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#A271F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271F6
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271F6#FFFFFF#000000##000000
##A271F61.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#388CFA
Deuteranopia (green-blind)
#488AF3
Tritanopia (blue-blind)
#8F8CA9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a271f6;
/* rgb */ color: rgb(162, 113, 246);
/* oklch */ color: oklch(65.9% 0.192 297.9);
Tailwind
colors: {
  custom: {
    50: '#c29bfa',
    500: '#a271f6',
    950: '#000000',
  },
}
SCSS
$custom: #a271f6;
$custom-light: #c29bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#a271f6",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 246
  },
  "hsl": {
    "h": 262.105,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.659,
    "c": 0.19215,
    "h": 297.9
  },
  "luminance": 0.26145
}

Semantic roles & 50–950 ramp

primary
#A271F6
secondary
#E6F4CF
accent
#E50191
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271F6

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

Preview Lab → · Contrast checker → · Palette generator →

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