#B271BF#B271BF

#B271BF is a light, vivid purple. Relative luminance 0.250; OKLCH L 64.6% C 0.133 H 320.8°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#B271BF
RGBrgb(178, 113, 191)
HSLhsl(290, 38%, 60%)
HSVhsv(290, 41%, 75%)
CMYKcmyk(6.8%, 40.8%, 0%, 25.1%)
CIE-LABlab(57.11, 38.64, -30.61)
CIE-LCHlch(57.11, 49.30, 321.61°)
OKLaboklab(64.6% 0.103 -0.0841)
OKLCHoklch(64.6% 0.133 320.8)
XYZxyz(33.6681, 25.0380, 52.3394)
Luminance0.2504 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271BF #7EBF71
analogous
#8B71BF #B271BF #BF71A5
triadic
#B271BF #BFB271 #71BFB2
tetradic
#B271BF #BF8B71 #7EBF71 #71A5BF
square
#B271BF #BF8B71 #7EBF71 #71A5BF
split-complementary
#B271BF #A5BF71 #71BF8B
monochromatic
#72387D #984BA7 #B271BF #C99BD2 #E0C5E5

Accessibility & contrast

On white

3.50
#B271BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#B271BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271BF
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271BF#FFFFFF#000000##000000
##B271BF1.003.506.016.01
#FFFFFF3.501.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6784C2
Deuteranopia (green-blind)
#788CBD
Tritanopia (blue-blind)
#B37A8F
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b271bf;
/* rgb */ color: rgb(178, 113, 191);
/* oklch */ color: oklch(64.6% 0.133 320.8);
Tailwind
colors: {
  custom: {
    50: '#ca9bd2',
    500: '#b271bf',
    950: '#000000',
  },
}
SCSS
$custom: #b271bf;
$custom-light: #ca9bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#b271bf",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 290,
    "s": 37.864,
    "l": 59.608
  },
  "oklch": {
    "l": 0.64595,
    "c": 0.13293,
    "h": 320.8
  },
  "luminance": 0.25037
}

Semantic roles & 50–950 ramp

primary
#B271BF
secondary
#BCD5B7
accent
#CE5A6D
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #B271BF

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

Preview Lab → · Contrast checker → · Palette generator →

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