#A271C8#A271C8

#A271C8 is a light, vivid violet. Relative luminance 0.237; OKLCH L 63.3% C 0.136 H 308.9°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#A271C8
RGBrgb(162, 113, 200)
HSLhsl(274, 44%, 61%)
HSVhsv(274, 44%, 78%)
CMYKcmyk(19%, 43.5%, 0%, 21.6%)
CIE-LABlab(55.75, 35.76, -38.01)
CIE-LCHlch(55.75, 52.18, 313.26°)
OKLaboklab(63.31% 0.0854 -0.1057)
OKLCHoklch(63.31% 0.136 308.9)
XYZxyz(31.2288, 23.6622, 57.5545)
Luminance0.2366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271C8 #97C871
analogous
#7771C8 #A271C8 #C871C3
triadic
#A271C8 #C8A271 #71C8A2
tetradic
#A271C8 #C87771 #97C871 #71C3C8
square
#A271C8 #C87771 #97C871 #71C3C8
split-complementary
#A271C8 #C3C871 #71C877
monochromatic
#653589 #8546B6 #A271C8 #BF9DD9 #DCC9EA

Accessibility & contrast

On white

3.66
#A271C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#A271C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271C8
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271C8#FFFFFF#000000##000000
##A271C81.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D83CB
Deuteranopia (green-blind)
#6A86C6
Tritanopia (blue-blind)
#9D7F93
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a271c8;
/* rgb */ color: rgb(162, 113, 200);
/* oklch */ color: oklch(63.3% 0.136 308.9);
Tailwind
colors: {
  custom: {
    50: '#bf9bd9',
    500: '#a271c8',
    950: '#000000',
  },
}
SCSS
$custom: #a271c8;
$custom-light: #bf9bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a271c8",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 273.793,
    "s": 44.162,
    "l": 61.373
  },
  "oklch": {
    "l": 0.63306,
    "c": 0.13587,
    "h": 308.9
  },
  "luminance": 0.23662
}

Semantic roles & 50–950 ramp

primary
#A271C8
secondary
#C8DBBA
accent
#B72E6A
background
#FBF9FD
surface
#F7F2FA
border
#D0CCD3
text
#120E14
muted
#817E83

Preview Lab

Preview with #A271C8

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

Preview Lab → · Contrast checker → · Palette generator →

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