#B271AC#B271AC

#B271AC is a light, moderate purple. Relative luminance 0.243; OKLCH L 63.8% C 0.114 H 330.1°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#B271AC
RGBrgb(178, 113, 172)
HSLhsl(306, 30%, 57%)
HSVhsv(306, 37%, 70%)
CMYKcmyk(0%, 36.5%, 3.4%, 30.2%)
CIE-LABlab(56.34, 34.97, -20.90)
CIE-LCHlch(56.34, 40.73, 329.13°)
OKLaboklab(63.76% 0.0984 -0.0565)
OKLCHoklch(63.76% 0.114 330.1)
XYZxyz(31.7112, 24.2552, 42.0331)
Luminance0.2425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271AC #71B277
analogous
#9771B2 #B271AC #B2718C
triadic
#B271AC #ACB271 #71ACB2
tetradic
#B271AC #B29771 #71B277 #718CB2
square
#B271AC #B29771 #71B277 #718CB2
split-complementary
#B271AC #8CB271 #71B297
monochromatic
#6D3B69 #95518F #B271AC #C899C3 #DDC0DA

Accessibility & contrast

On white

3.59
#B271AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#B271AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271AC
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271AC#FFFFFF#000000##000000
##B271AC1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E82AE
Deuteranopia (green-blind)
#7F8AAA
Tritanopia (blue-blind)
#B77687
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b271ac;
/* rgb */ color: rgb(178, 113, 172);
/* oklch */ color: oklch(63.8% 0.114 330.1);
Tailwind
colors: {
  custom: {
    50: '#ca9bc5',
    500: '#b271ac',
    950: '#000000',
  },
}
SCSS
$custom: #b271ac;
$custom-light: #ca9bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ac",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 172
  },
  "hsl": {
    "h": 305.538,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.63762,
    "c": 0.1135,
    "h": 330.1
  },
  "luminance": 0.24254
}

Semantic roles & 50–950 ramp

primary
#B271AC
secondary
#B2CDB5
accent
#C66B62
background
#FCF9FC
surface
#F8F2F8
border
#D1CCD1
text
#130E12
muted
#827E81

Preview Lab

Preview with #B271AC

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

Preview Lab → · Contrast checker → · Palette generator →

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