#B271A7#B271A7

#B271A7 is a light, moderate pink. Relative luminance 0.241; OKLCH L 63.6% C 0.109 H 333.1°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#B271A7
RGBrgb(178, 113, 167)
HSLhsl(310, 30%, 57%)
HSVhsv(310, 37%, 70%)
CMYKcmyk(0%, 36.5%, 6.2%, 30.2%)
CIE-LABlab(56.15, 34.05, -18.30)
CIE-LCHlch(56.15, 38.65, 331.75°)
OKLaboklab(63.56% 0.097 -0.0493)
OKLCHoklch(63.56% 0.109 333.1)
XYZxyz(31.2400, 24.0667, 39.5515)
Luminance0.2407 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271A7 #71B27C
analogous
#9D71B2 #B271A7 #B27187
triadic
#B271A7 #A7B271 #71A7B2
tetradic
#B271A7 #B29D71 #71B27C #7187B2
square
#B271A7 #B29D71 #71B27C #7187B2
split-complementary
#B271A7 #87B271 #71B29D
monochromatic
#6D3B65 #955189 #B271A7 #C899C0 #DDC0D8

Accessibility & contrast

On white

3.61
#B271A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#B271A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271A7
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271A7#FFFFFF#000000##000000
##B271A71.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7081A9
Deuteranopia (green-blind)
#808AA5
Tritanopia (blue-blind)
#B87485
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b271a7;
/* rgb */ color: rgb(178, 113, 167);
/* oklch */ color: oklch(63.6% 0.109 333.1);
Tailwind
colors: {
  custom: {
    50: '#ca9bc1',
    500: '#b271a7',
    950: '#000000',
  },
}
SCSS
$custom: #b271a7;
$custom-light: #ca9bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b271a7",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 167
  },
  "hsl": {
    "h": 310.154,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.63558,
    "c": 0.10883,
    "h": 333.1
  },
  "luminance": 0.24065
}

Semantic roles & 50–950 ramp

primary
#B271A7
secondary
#B2CDB7
accent
#C67362
background
#FCF9FB
surface
#F8F2F7
border
#D1CCD0
text
#130E12
muted
#827E81

Preview Lab

Preview with #B271A7

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

Preview Lab → · Contrast checker → · Palette generator →

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