#B271A2#B271A2

#B271A2 is a light, moderate pink. Relative luminance 0.239; OKLCH L 63.4% C 0.104 H 336.3°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#B271A2
RGBrgb(178, 113, 162)
HSLhsl(315, 30%, 57%)
HSVhsv(315, 37%, 70%)
CMYKcmyk(0%, 36.5%, 9%, 30.2%)
CIE-LABlab(55.97, 33.15, -15.68)
CIE-LCHlch(55.97, 36.68, 334.69°)
OKLaboklab(63.36% 0.0956 -0.042)
OKLCHoklch(63.36% 0.104 336.3)
XYZxyz(30.7867, 23.8854, 37.1641)
Luminance0.2388 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271A2 #71B281
analogous
#A171B2 #B271A2 #B27182
triadic
#B271A2 #A2B271 #71A2B2
tetradic
#B271A2 #B2A171 #71B281 #7182B2
square
#B271A2 #B2A171 #71B281 #7182B2
split-complementary
#B271A2 #82B271 #71B2A1
monochromatic
#6D3B61 #955184 #B271A2 #C899BC #DDC0D6

Accessibility & contrast

On white

3.64
#B271A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#B271A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271A2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271A2#FFFFFF#000000##000000
##B271A21.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7280A4
Deuteranopia (green-blind)
#828AA0
Tritanopia (blue-blind)
#B87383
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b271a2;
/* rgb */ color: rgb(178, 113, 162);
/* oklch */ color: oklch(63.4% 0.104 336.3);
Tailwind
colors: {
  custom: {
    50: '#ca9bbd',
    500: '#b271a2',
    950: '#000000',
  },
}
SCSS
$custom: #b271a2;
$custom-light: #ca9bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#b271a2",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 314.769,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.63361,
    "c": 0.1044,
    "h": 336.3
  },
  "luminance": 0.23884
}

Semantic roles & 50–950 ramp

primary
#B271A2
secondary
#B2CDB9
accent
#C67B62
background
#FCF9FB
surface
#F8F2F6
border
#D1CCD0
text
#130E12
muted
#827E81

Preview Lab

Preview with #B271A2

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

Preview Lab → · Contrast checker → · Palette generator →

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