#A271F2#A271F2

#A271F2 is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.7% C 0.187 H 298.7°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#A271F2
RGBrgb(162, 113, 242)
HSLhsl(263, 83%, 70%)
HSVhsv(263, 53%, 95%)
CMYKcmyk(33.1%, 53.3%, 0%, 5.1%)
CIE-LABlab(57.94, 45.79, -58.13)
CIE-LCHlch(57.94, 74.00, 308.23°)
OKLaboklab(65.66% 0.0898 -0.1644)
OKLCHoklch(65.66% 0.187 298.7)
XYZxyz(36.8285, 25.9021, 87.0465)
Luminance0.2590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271F2 #C1F271
analogous
#7180F2 #A271F2 #E371F2
triadic
#A271F2 #F2A271 #71F2A2
tetradic
#A271F2 #F27180 #C1F271 #71F2E3
square
#A271F2 #F27180 #C1F271 #71F2E3
split-complementary
#A271F2 #F2E371 #80F271
monochromatic
#5D14D5 #7D39ED #A271F2 #C7A9F7 #EBE1FC

Accessibility & contrast

On white

3.40
#A271F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#A271F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271F2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271F2#FFFFFF#000000##000000
##A271F21.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8BF6
Deuteranopia (green-blind)
#4C8AEF
Tritanopia (blue-blind)
#918BA7
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a271f2;
/* rgb */ color: rgb(162, 113, 242);
/* oklch */ color: oklch(65.7% 0.187 298.7);
Tailwind
colors: {
  custom: {
    50: '#c19bf7',
    500: '#a271f2',
    950: '#000000',
  },
}
SCSS
$custom: #a271f2;
$custom-light: #c19bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#a271f2",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 262.791,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.65655,
    "c": 0.1873,
    "h": 298.7
  },
  "luminance": 0.25902
}

Semantic roles & 50–950 ramp

primary
#A271F2
secondary
#E4F2CD
accent
#E0068D
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A271F2

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

Preview Lab → · Contrast checker → · Palette generator →

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