#B271AA#B271AA

#B271AA is a light, moderate purple. Relative luminance 0.242; OKLCH L 63.7% C 0.112 H 331.3°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#B271AA
RGBrgb(178, 113, 170)
HSLhsl(307, 30%, 57%)
HSVhsv(307, 37%, 70%)
CMYKcmyk(0%, 36.5%, 4.5%, 30.2%)
CIE-LABlab(56.27, 34.60, -19.86)
CIE-LCHlch(56.27, 39.89, 330.14°)
OKLaboklab(63.68% 0.0979 -0.0536)
OKLCHoklch(63.68% 0.112 331.3)
XYZxyz(31.5205, 24.1790, 41.0291)
Luminance0.2418 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271AA #71B279
analogous
#9A71B2 #B271AA #B2718A
triadic
#B271AA #AAB271 #71AAB2
tetradic
#B271AA #B29A71 #71B279 #718AB2
square
#B271AA #B29A71 #71B279 #718AB2
split-complementary
#B271AA #8AB271 #71B29A
monochromatic
#6D3B67 #95518D #B271AA #C899C2 #DDC0DA

Accessibility & contrast

On white

3.60
#B271AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#B271AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271AA
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271AA#FFFFFF#000000##000000
##B271AA1.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F81AC
Deuteranopia (green-blind)
#7F8AA8
Tritanopia (blue-blind)
#B77586
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b271aa;
/* rgb */ color: rgb(178, 113, 170);
/* oklch */ color: oklch(63.7% 0.112 331.3);
Tailwind
colors: {
  custom: {
    50: '#ca9bc3',
    500: '#b271aa',
    950: '#000000',
  },
}
SCSS
$custom: #b271aa;
$custom-light: #ca9bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#b271aa",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 170
  },
  "hsl": {
    "h": 307.385,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.6368,
    "c": 0.11161,
    "h": 331.3
  },
  "luminance": 0.24178
}

Semantic roles & 50–950 ramp

primary
#B271AA
secondary
#B2CDB5
accent
#C66E62
background
#FCF9FC
surface
#F8F2F8
border
#D1CCD1
text
#130E12
muted
#827E81

Preview Lab

Preview with #B271AA

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

Preview Lab → · Contrast checker → · Palette generator →

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