#B271BA#B271BA

#B271BA is a light, vivid purple. Relative luminance 0.248; OKLCH L 64.4% C 0.128 H 323.0°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#B271BA
RGBrgb(178, 113, 186)
HSLhsl(293, 35%, 59%)
HSVhsv(293, 39%, 73%)
CMYKcmyk(4.3%, 39.2%, 0%, 27.1%)
CIE-LABlab(56.90, 37.64, -28.08)
CIE-LCHlch(56.90, 46.96, 323.28°)
OKLaboklab(64.37% 0.1019 -0.0769)
OKLCHoklch(64.37% 0.128 323)
XYZxyz(33.1272, 24.8216, 49.4909)
Luminance0.2482 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271BA #79BA71
analogous
#8D71BA #B271BA #BA719D
triadic
#B271BA #BAB271 #71BAB2
tetradic
#B271BA #BA8D71 #79BA71 #719DBA
square
#B271BA #BA8D71 #79BA71 #719DBA
split-complementary
#B271BA #9DBA71 #71BA8D
monochromatic
#703A77 #974EA0 #B271BA #C89ACE #DFC3E2

Accessibility & contrast

On white

3.52
#B271BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#B271BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271BA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271BA#FFFFFF#000000##000000
##B271BA1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6984BD
Deuteranopia (green-blind)
#7A8BB8
Tritanopia (blue-blind)
#B4798D
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b271ba;
/* rgb */ color: rgb(178, 113, 186);
/* oklch */ color: oklch(64.4% 0.128 323.0);
Tailwind
colors: {
  custom: {
    50: '#ca9bcf',
    500: '#b271ba',
    950: '#000000',
  },
}
SCSS
$custom: #b271ba;
$custom-light: #ca9bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ba",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 293.425,
    "s": 34.597,
    "l": 58.627
  },
  "oklch": {
    "l": 0.64367,
    "c": 0.12762,
    "h": 323
  },
  "luminance": 0.2482
}

Semantic roles & 50–950 ramp

primary
#B271BA
secondary
#B8D2B5
accent
#CB5D69
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E13
muted
#827E82

Preview Lab

Preview with #B271BA

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

Preview Lab → · Contrast checker → · Palette generator →

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