#B271C8#B271C8

#B271C8 is a light, vivid purple. Relative luminance 0.254; OKLCH L 65.0% C 0.143 H 317.2°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#B271C8
RGBrgb(178, 113, 200)
HSLhsl(285, 44%, 61%)
HSVhsv(285, 44%, 78%)
CMYKcmyk(11%, 43.5%, 0%, 21.6%)
CIE-LABlab(57.51, 40.47, -35.12)
CIE-LCHlch(57.51, 53.59, 319.05°)
OKLaboklab(65.02% 0.1047 -0.097)
OKLCHoklch(65.02% 0.143 317.2)
XYZxyz(34.6891, 25.4464, 57.7167)
Luminance0.2545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271C8 #87C871
analogous
#8771C8 #B271C8 #C871B3
triadic
#B271C8 #C8B271 #71C8B2
tetradic
#B271C8 #C88771 #87C871 #71B3C8
square
#B271C8 #C88771 #87C871 #71B3C8
split-complementary
#B271C8 #B3C871 #71C887
monochromatic
#743589 #9946B6 #B271C8 #CA9DD9 #E2C9EA

Accessibility & contrast

On white

3.45
#B271C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#B271C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271C8
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271C8#FFFFFF#000000##000000
##B271C81.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6286CB
Deuteranopia (green-blind)
#748CC5
Tritanopia (blue-blind)
#B27D93
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b271c8;
/* rgb */ color: rgb(178, 113, 200);
/* oklch */ color: oklch(65.0% 0.143 317.2);
Tailwind
colors: {
  custom: {
    50: '#ca9bd9',
    500: '#b271c8',
    950: '#000000',
  },
}
SCSS
$custom: #b271c8;
$custom-light: #ca9bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b271c8",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 284.828,
    "s": 44.162,
    "l": 61.373
  },
  "oklch": {
    "l": 0.65021,
    "c": 0.14274,
    "h": 317.2
  },
  "luminance": 0.25445
}

Semantic roles & 50–950 ramp

primary
#B271C8
secondary
#C2DBBA
accent
#B72E51
background
#FCF9FD
surface
#F9F2FA
border
#D2CCD3
text
#130E14
muted
#827E83

Preview Lab

Preview with #B271C8

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

Preview Lab → · Contrast checker → · Palette generator →

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