#A271CF#A271CF

#A271CF is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.7% C 0.144 H 306.8°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#A271CF
RGBrgb(162, 113, 207)
HSLhsl(271, 49%, 63%)
HSVhsv(271, 45%, 81%)
CMYKcmyk(21.7%, 45.4%, 0%, 18.8%)
CIE-LABlab(56.08, 37.36, -41.45)
CIE-LCHlch(56.08, 55.81, 312.03°)
OKLaboklab(63.67% 0.0865 -0.1157)
OKLCHoklch(63.67% 0.144 306.8)
XYZxyz(32.0656, 23.9969, 61.9620)
Luminance0.2400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271CF #9ECF71
analogous
#7371CF #A271CF #CF71CD
triadic
#A271CF #CFA271 #71CFA2
tetradic
#A271CF #CF7371 #9ECF71 #71CDCF
square
#A271CF #CF7371 #9ECF71 #71CDCF
split-complementary
#A271CF #CDCF71 #71CF73
monochromatic
#653294 #8443C0 #A271CF #C09FDE #DECCEE

Accessibility & contrast

On white

3.62
#A271CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#A271CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271CF
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271CF#FFFFFF#000000##000000
##A271CF1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5985D2
Deuteranopia (green-blind)
#6687CD
Tritanopia (blue-blind)
#9B8096
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a271cf;
/* rgb */ color: rgb(162, 113, 207);
/* oklch */ color: oklch(63.7% 0.144 306.8);
Tailwind
colors: {
  custom: {
    50: '#bf9bde',
    500: '#a271cf',
    950: '#000000',
  },
}
SCSS
$custom: #a271cf;
$custom-light: #bf9bde;
$custom-dark: #000000;
JSON
{
  "hex": "#a271cf",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 271.277,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63669,
    "c": 0.14444,
    "h": 306.8
  },
  "luminance": 0.23997
}

Semantic roles & 50–950 ramp

primary
#A271CF
secondary
#CDDFBD
accent
#BD2970
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A271CF

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

Preview Lab → · Contrast checker → · Palette generator →

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