#A271F5#A271F5

#A271F5 is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.8% C 0.191 H 298.1°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#A271F5
RGBrgb(162, 113, 245)
HSLhsl(262, 87%, 70%)
HSVhsv(262, 54%, 96%)
CMYKcmyk(33.9%, 53.9%, 0%, 3.9%)
CIE-LABlab(58.12, 46.54, -59.52)
CIE-LCHlch(58.12, 75.56, 308.02°)
OKLaboklab(65.84% 0.0899 -0.1684)
OKLCHoklch(65.84% 0.191 298.1)
XYZxyz(37.2828, 26.0838, 89.4389)
Luminance0.2608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271F5 #C4F571
analogous
#7182F5 #A271F5 #E471F5
triadic
#A271F5 #F5A271 #71F5A2
tetradic
#A271F5 #F57182 #C4F571 #71F5E4
square
#A271F5 #F57182 #C4F571 #71F5E4
split-complementary
#A271F5 #F5E471 #82F571
monochromatic
#5B10DC #7D38F1 #A271F5 #C7AAF9 #ECE2FD

Accessibility & contrast

On white

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

On black

6.22
#A271F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271F5
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271F5#FFFFFF#000000##000000
##A271F51.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8CF9
Deuteranopia (green-blind)
#498AF2
Tritanopia (blue-blind)
#908BA8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a271f5;
/* rgb */ color: rgb(162, 113, 245);
/* oklch */ color: oklch(65.8% 0.191 298.1);
Tailwind
colors: {
  custom: {
    50: '#c29bf9',
    500: '#a271f5',
    950: '#000000',
  },
}
SCSS
$custom: #a271f5;
$custom-light: #c29bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#a271f5",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 262.273,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65838,
    "c": 0.19094,
    "h": 298.1
  },
  "luminance": 0.26084
}

Semantic roles & 50–950 ramp

primary
#A271F5
secondary
#E6F3CF
accent
#E30290
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271F5

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

Preview Lab → · Contrast checker → · Palette generator →

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