#B271BB#B271BB

#B271BB is a light, vivid purple. Relative luminance 0.249; OKLCH L 64.4% C 0.129 H 322.5°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#B271BB
RGBrgb(178, 113, 187)
HSLhsl(293, 35%, 59%)
HSVhsv(293, 40%, 73%)
CMYKcmyk(4.8%, 39.6%, 0%, 26.7%)
CIE-LABlab(56.94, 37.84, -28.59)
CIE-LCHlch(56.94, 47.43, 322.93°)
OKLaboklab(64.41% 0.1021 -0.0783)
OKLCHoklch(64.41% 0.129 322.5)
XYZxyz(33.2339, 24.8643, 50.0527)
Luminance0.2486 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271BB #7ABB71
analogous
#8D71BB #B271BB #BB719F
triadic
#B271BB #BBB271 #71BBB2
tetradic
#B271BB #BB8D71 #7ABB71 #719FBB
square
#B271BB #BB8D71 #7ABB71 #719FBB
split-complementary
#B271BB #9FBB71 #71BB8D
monochromatic
#703A78 #974DA1 #B271BB #C89ACF #DFC4E3

Accessibility & contrast

On white

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

On black

5.97
#B271BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271BB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271BB#FFFFFF#000000##000000
##B271BB1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6884BE
Deuteranopia (green-blind)
#798BB9
Tritanopia (blue-blind)
#B4798D
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b271bb;
/* rgb */ color: rgb(178, 113, 187);
/* oklch */ color: oklch(64.4% 0.129 322.5);
Tailwind
colors: {
  custom: {
    50: '#ca9bcf',
    500: '#b271bb',
    950: '#000000',
  },
}
SCSS
$custom: #b271bb;
$custom-light: #ca9bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#b271bb",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 292.703,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.64412,
    "c": 0.12867,
    "h": 322.5
  },
  "luminance": 0.24863
}

Semantic roles & 50–950 ramp

primary
#B271BB
secondary
#B9D2B5
accent
#CB5D6A
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #B271BB

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

Preview Lab → · Contrast checker → · Palette generator →

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