#A271BF#A271BF

#A271BF is a light, vivid violet. Relative luminance 0.233; OKLCH L 62.9% C 0.125 H 312.1°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#A271BF
RGBrgb(162, 113, 191)
HSLhsl(278, 38%, 60%)
HSVhsv(278, 41%, 75%)
CMYKcmyk(15.2%, 40.8%, 0%, 25.1%)
CIE-LABlab(55.33, 33.75, -33.52)
CIE-LCHlch(55.33, 47.57, 315.19°)
OKLaboklab(62.86% 0.0837 -0.0927)
OKLCHoklch(62.86% 0.125 312.1)
XYZxyz(30.2078, 23.2538, 52.1772)
Luminance0.2325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A271BF #8EBF71
analogous
#7B71BF #A271BF #BF71B5
triadic
#A271BF #BFA271 #71BFA2
tetradic
#A271BF #BF7B71 #8EBF71 #71B5BF
square
#A271BF #BF7B71 #8EBF71 #71B5BF
split-complementary
#A271BF #B5BF71 #71BF7B
monochromatic
#64387D #854BA7 #A271BF #BE9BD2 #D9C5E5

Accessibility & contrast

On white

3.72
#A271BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#A271BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A271BF
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A271BF#FFFFFF#000000##000000
##A271BF1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6282C2
Deuteranopia (green-blind)
#6E86BD
Tritanopia (blue-blind)
#9F7C8F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #a271bf;
/* rgb */ color: rgb(162, 113, 191);
/* oklch */ color: oklch(62.9% 0.125 312.1);
Tailwind
colors: {
  custom: {
    50: '#bf9ad2',
    500: '#a271bf',
    950: '#000000',
  },
}
SCSS
$custom: #a271bf;
$custom-light: #bf9ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#a271bf",
  "rgb": {
    "r": 162,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 277.692,
    "s": 37.864,
    "l": 59.608
  },
  "oklch": {
    "l": 0.62858,
    "c": 0.12495,
    "h": 312.1
  },
  "luminance": 0.23253
}

Semantic roles & 50–950 ramp

primary
#A271BF
secondary
#C2D5B7
accent
#CE5A85
background
#FBF9FC
surface
#F7F2F9
border
#D0CCD2
text
#120E14
muted
#817E82

Preview Lab

Preview with #A271BF

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

Preview Lab → · Contrast checker → · Palette generator →

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