#A271F0#A271F0

#A271F0 is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.5% C 0.185 H 299.0°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#A271F0
RGBrgb(162, 113, 240)
HSLhsl(263, 81%, 69%)
HSVhsv(263, 53%, 94%)
CMYKcmyk(32.5%, 52.9%, 0%, 5.9%)
CIE-LABlab(57.83, 45.30, -57.20)
CIE-LCHlch(57.83, 72.96, 308.37°)
OKLaboklab(65.53% 0.0897 -0.1616)
OKLCHoklch(65.53% 0.185 299)
XYZxyz(36.5298, 25.7826, 85.4732)
Luminance0.2578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271F0 #BFF071
analogous
#7180F0 #A271F0 #E271F0
triadic
#A271F0 #F0A271 #71F0A2
tetradic
#A271F0 #F07180 #BFF071 #71F0E2
square
#A271F0 #F07180 #BFF071 #71F0E2
split-complementary
#A271F0 #F0E271 #80F071
monochromatic
#5E16D1 #7E3AEA #A271F0 #C6A8F6 #EBE0FC

Accessibility & contrast

On white

3.41
#A271F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#A271F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271F0
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271F0#FFFFFF#000000##000000
##A271F01.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8BF4
Deuteranopia (green-blind)
#4E8AED
Tritanopia (blue-blind)
#918AA6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a271f0;
/* rgb */ color: rgb(162, 113, 240);
/* oklch */ color: oklch(65.5% 0.185 299.0);
Tailwind
colors: {
  custom: {
    50: '#c19bf5',
    500: '#a271f0',
    950: '#000000',
  },
}
SCSS
$custom: #a271f0;
$custom-light: #c19bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#a271f0",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 240
  },
  "hsl": {
    "h": 263.15,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.65534,
    "c": 0.18488,
    "h": 299
  },
  "luminance": 0.25783
}

Semantic roles & 50–950 ramp

primary
#A271F0
secondary
#E3F1CC
accent
#DD088B
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271F0

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

Preview Lab → · Contrast checker → · Palette generator →

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