#B271A9#B271A9

#B271A9 is a light, moderate purple. Relative luminance 0.241; OKLCH L 63.6% C 0.111 H 331.9°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#B271A9
RGBrgb(178, 113, 169)
HSLhsl(308, 30%, 57%)
HSVhsv(308, 37%, 70%)
CMYKcmyk(0%, 36.5%, 5.1%, 30.2%)
CIE-LABlab(56.23, 34.41, -19.34)
CIE-LCHlch(56.23, 39.47, 330.66°)
OKLaboklab(63.64% 0.0976 -0.0522)
OKLCHoklch(63.64% 0.111 331.9)
XYZxyz(31.4263, 24.1413, 40.5328)
Luminance0.2414 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271A9 #71B27A
analogous
#9B71B2 #B271A9 #B27189
triadic
#B271A9 #A9B271 #71A9B2
tetradic
#B271A9 #B29B71 #71B27A #7189B2
square
#B271A9 #B29B71 #71B27A #7189B2
split-complementary
#B271A9 #89B271 #71B29B
monochromatic
#6D3B66 #95518C #B271A9 #C899C1 #DDC0D9

Accessibility & contrast

On white

3.60
#B271A9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#B271A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271A9
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271A9#FFFFFF#000000##000000
##B271A91.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F81AB
Deuteranopia (green-blind)
#808AA7
Tritanopia (blue-blind)
#B77586
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b271a9;
/* rgb */ color: rgb(178, 113, 169);
/* oklch */ color: oklch(63.6% 0.111 331.9);
Tailwind
colors: {
  custom: {
    50: '#ca9bc2',
    500: '#b271a9',
    950: '#000000',
  },
}
SCSS
$custom: #b271a9;
$custom-light: #ca9bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#b271a9",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 169
  },
  "hsl": {
    "h": 308.308,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.63639,
    "c": 0.11067,
    "h": 331.9
  },
  "luminance": 0.2414
}

Semantic roles & 50–950 ramp

primary
#B271A9
secondary
#B2CDB6
accent
#C67062
background
#FCF9FB
surface
#F8F2F7
border
#D1CCD0
text
#130E12
muted
#827E81

Preview Lab

Preview with #B271A9

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

Preview Lab → · Contrast checker → · Palette generator →

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