#B271BD#B271BD

#B271BD is a light, vivid purple. Relative luminance 0.249; OKLCH L 64.5% C 0.131 H 321.6°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#B271BD
RGBrgb(178, 113, 189)
HSLhsl(291, 37%, 59%)
HSVhsv(291, 40%, 74%)
CMYKcmyk(5.8%, 40.2%, 0%, 25.9%)
CIE-LABlab(57.03, 38.24, -29.60)
CIE-LCHlch(57.03, 48.36, 322.25°)
OKLaboklab(64.5% 0.1025 -0.0812)
OKLCHoklch(64.5% 0.131 321.6)
XYZxyz(33.4495, 24.9505, 51.1882)
Luminance0.2495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271BD #7CBD71
analogous
#8C71BD #B271BD #BD71A2
triadic
#B271BD #BDB271 #71BDB2
tetradic
#B271BD #BD8C71 #7CBD71 #71A2BD
square
#B271BD #BD8C71 #7CBD71 #71A2BD
split-complementary
#B271BD #A2BD71 #71BD8C
monochromatic
#71397B #984CA4 #B271BD #C99BD0 #DFC5E4

Accessibility & contrast

On white

3.51
#B271BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#B271BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271BD
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271BD#FFFFFF#000000##000000
##B271BD1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6884C0
Deuteranopia (green-blind)
#798BBB
Tritanopia (blue-blind)
#B47A8E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b271bd;
/* rgb */ color: rgb(178, 113, 189);
/* oklch */ color: oklch(64.5% 0.131 321.6);
Tailwind
colors: {
  custom: {
    50: '#ca9bd1',
    500: '#b271bd',
    950: '#000000',
  },
}
SCSS
$custom: #b271bd;
$custom-light: #ca9bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#b271bd",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 291.316,
    "s": 36.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.64503,
    "c": 0.13079,
    "h": 321.6
  },
  "luminance": 0.24949
}

Semantic roles & 50–950 ramp

primary
#B271BD
secondary
#BAD4B6
accent
#CD5B6C
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #B271BD

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

Preview Lab → · Contrast checker → · Palette generator →

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