#B271A8#B271A8

#B271A8 is a light, moderate purple. Relative luminance 0.241; OKLCH L 63.6% C 0.110 H 332.5°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#B271A8
RGBrgb(178, 113, 168)
HSLhsl(309, 30%, 57%)
HSVhsv(309, 37%, 70%)
CMYKcmyk(0%, 36.5%, 5.6%, 30.2%)
CIE-LABlab(56.19, 34.23, -18.82)
CIE-LCHlch(56.19, 39.06, 331.20°)
OKLaboklab(63.6% 0.0973 -0.0507)
OKLCHoklch(63.6% 0.11 332.5)
XYZxyz(31.3328, 24.1039, 40.0403)
Luminance0.2410 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271A8 #71B27B
analogous
#9C71B2 #B271A8 #B27188
triadic
#B271A8 #A8B271 #71A8B2
tetradic
#B271A8 #B29C71 #71B27B #7188B2
square
#B271A8 #B29C71 #71B27B #7188B2
split-complementary
#B271A8 #88B271 #71B29C
monochromatic
#6D3B66 #95518B #B271A8 #C899C0 #DDC0D9

Accessibility & contrast

On white

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

On black

5.82
#B271A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271A8
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271A8#FFFFFF#000000##000000
##B271A81.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7081AA
Deuteranopia (green-blind)
#808AA6
Tritanopia (blue-blind)
#B77585
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b271a8;
/* rgb */ color: rgb(178, 113, 168);
/* oklch */ color: oklch(63.6% 0.110 332.5);
Tailwind
colors: {
  custom: {
    50: '#ca9bc2',
    500: '#b271a8',
    950: '#000000',
  },
}
SCSS
$custom: #b271a8;
$custom-light: #ca9bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#b271a8",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 168
  },
  "hsl": {
    "h": 309.231,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.63598,
    "c": 0.10974,
    "h": 332.5
  },
  "luminance": 0.24102
}

Semantic roles & 50–950 ramp

primary
#B271A8
secondary
#B2CDB6
accent
#C67162
background
#FCF9FB
surface
#F8F2F7
border
#D1CCD0
text
#130E12
muted
#827E81

Preview Lab

Preview with #B271A8

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

Preview Lab → · Contrast checker → · Palette generator →

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