#B271AF#B271AF

#B271AF is a light, moderate purple. Relative luminance 0.244; OKLCH L 63.9% C 0.116 H 328.4°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#B271AF
RGBrgb(178, 113, 175)
HSLhsl(303, 30%, 57%)
HSVhsv(303, 37%, 70%)
CMYKcmyk(0%, 36.5%, 1.7%, 30.2%)
CIE-LABlab(56.46, 35.52, -22.45)
CIE-LCHlch(56.46, 42.02, 327.71°)
OKLaboklab(63.89% 0.0992 -0.0609)
OKLCHoklch(63.89% 0.116 328.4)
XYZxyz(32.0025, 24.3718, 43.5676)
Luminance0.2437 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271AF #71B274
analogous
#9571B2 #B271AF #B2718F
triadic
#B271AF #AFB271 #71AFB2
tetradic
#B271AF #B29571 #71B274 #718FB2
square
#B271AF #B29571 #71B274 #718FB2
split-complementary
#B271AF #8FB271 #71B295
monochromatic
#6D3B6B #955192 #B271AF #C899C5 #DDC0DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B271AF#FFFFFF#000000##000000
##B271AF1.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)
#6D82B1
Deuteranopia (green-blind)
#7E8AAD
Tritanopia (blue-blind)
#B67688
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b271af;
/* rgb */ color: rgb(178, 113, 175);
/* oklch */ color: oklch(63.9% 0.116 328.4);
Tailwind
colors: {
  custom: {
    50: '#ca9bc7',
    500: '#b271af',
    950: '#000000',
  },
}
SCSS
$custom: #b271af;
$custom-light: #ca9bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#b271af",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 175
  },
  "hsl": {
    "h": 302.769,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.63887,
    "c": 0.11641,
    "h": 328.4
  },
  "luminance": 0.2437
}

Semantic roles & 50–950 ramp

primary
#B271AF
secondary
#B2CDB3
accent
#C66662
background
#FCF9FC
surface
#F8F2F8
border
#D1CCD1
text
#130E13
muted
#827E82

Preview Lab

Preview with #B271AF

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

Preview Lab → · Contrast checker → · Palette generator →

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