#B271AE#B271AE

#B271AE is a light, moderate purple. Relative luminance 0.243; OKLCH L 63.8% C 0.115 H 329.0°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#B271AE
RGBrgb(178, 113, 174)
HSLhsl(304, 30%, 57%)
HSVhsv(304, 37%, 70%)
CMYKcmyk(0%, 36.5%, 2.2%, 30.2%)
CIE-LABlab(56.42, 35.34, -21.93)
CIE-LCHlch(56.42, 41.59, 328.17°)
OKLaboklab(63.85% 0.0989 -0.0595)
OKLCHoklch(63.85% 0.115 329)
XYZxyz(31.9047, 24.3326, 43.0523)
Luminance0.2433 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271AE #71B275
analogous
#9671B2 #B271AE #B2718E
triadic
#B271AE #AEB271 #71AEB2
tetradic
#B271AE #B29671 #71B275 #718EB2
square
#B271AE #B29671 #71B275 #718EB2
split-complementary
#B271AE #8EB271 #71B296
monochromatic
#6D3B6A #955191 #B271AE #C899C5 #DDC0DB

Accessibility & contrast

On white

3.58
#B271AE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#B271AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271AE
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271AE#FFFFFF#000000##000000
##B271AE1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E82B0
Deuteranopia (green-blind)
#7E8AAC
Tritanopia (blue-blind)
#B67688
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b271ae;
/* rgb */ color: rgb(178, 113, 174);
/* oklch */ color: oklch(63.8% 0.115 329.0);
Tailwind
colors: {
  custom: {
    50: '#ca9bc6',
    500: '#b271ae',
    950: '#000000',
  },
}
SCSS
$custom: #b271ae;
$custom-light: #ca9bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ae",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 174
  },
  "hsl": {
    "h": 303.692,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.63845,
    "c": 0.11543,
    "h": 329
  },
  "luminance": 0.24331
}

Semantic roles & 50–950 ramp

primary
#B271AE
secondary
#B2CDB4
accent
#C66862
background
#FCF9FC
surface
#F8F2F8
border
#D1CCD1
text
#130E13
muted
#827E82

Preview Lab

Preview with #B271AE

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

Preview Lab → · Contrast checker → · Palette generator →

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