#B271BC#B271BC

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

Color values

HEX#B271BC
RGBrgb(178, 113, 188)
HSLhsl(292, 36%, 59%)
HSVhsv(292, 40%, 74%)
CMYKcmyk(5.3%, 39.9%, 0%, 26.3%)
CIE-LABlab(56.98, 38.04, -29.10)
CIE-LCHlch(56.98, 47.89, 322.59°)
OKLaboklab(64.46% 0.1023 -0.0798)
OKLCHoklch(64.46% 0.13 322.1)
XYZxyz(33.3413, 24.9073, 50.6185)
Luminance0.2491 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271BC #7BBC71
analogous
#8D71BC #B271BC #BC71A1
triadic
#B271BC #BCB271 #71BCB2
tetradic
#B271BC #BC8D71 #7BBC71 #71A1BC
square
#B271BC #BC8D71 #7BBC71 #71A1BC
split-complementary
#B271BC #A1BC71 #71BC8D
monochromatic
#713979 #974DA3 #B271BC #C99BD0 #DFC4E3

Accessibility & contrast

On white

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

On black

5.98
#B271BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271BC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271BC#FFFFFF#000000##000000
##B271BC1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b271bc;
/* rgb */ color: rgb(178, 113, 188);
/* oklch */ color: oklch(64.5% 0.130 322.1);
Tailwind
colors: {
  custom: {
    50: '#ca9bd0',
    500: '#b271bc',
    950: '#000000',
  },
}
SCSS
$custom: #b271bc;
$custom-light: #ca9bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#b271bc",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 292,
    "s": 35.885,
    "l": 59.02
  },
  "oklch": {
    "l": 0.64457,
    "c": 0.12973,
    "h": 322.1
  },
  "luminance": 0.24906
}

Semantic roles & 50–950 ramp

primary
#B271BC
secondary
#BAD3B6
accent
#CC5C6B
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #B271BC

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

Preview Lab → · Contrast checker → · Palette generator →

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