#B271C9#B271C9

#B271C9 is a light, vivid purple. Relative luminance 0.255; OKLCH L 65.1% C 0.144 H 316.8°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#B271C9
RGBrgb(178, 113, 201)
HSLhsl(284, 45%, 62%)
HSVhsv(284, 44%, 79%)
CMYKcmyk(11.4%, 43.8%, 0%, 21.2%)
CIE-LABlab(57.55, 40.68, -35.62)
CIE-LCHlch(57.55, 54.07, 318.79°)
OKLaboklab(65.07% 0.1049 -0.0984)
OKLCHoklch(65.07% 0.144 316.8)
XYZxyz(34.8063, 25.4933, 58.3342)
Luminance0.2549 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271C9 #88C971
analogous
#8671C9 #B271C9 #C971B4
triadic
#B271C9 #C9B271 #71C9B2
tetradic
#B271C9 #C98671 #88C971 #71B4C9
square
#B271C9 #C98671 #88C971 #71B4C9
split-complementary
#B271C9 #B4C971 #71C986
monochromatic
#74358B #9946B7 #B271C9 #CA9DDA #E2CAEB

Accessibility & contrast

On white

3.44
#B271C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#B271C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271C9
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271C9#FFFFFF#000000##000000
##B271C91.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6286CC
Deuteranopia (green-blind)
#738CC6
Tritanopia (blue-blind)
#B17D93
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b271c9;
/* rgb */ color: rgb(178, 113, 201);
/* oklch */ color: oklch(65.1% 0.144 316.8);
Tailwind
colors: {
  custom: {
    50: '#ca9bd9',
    500: '#b271c9',
    950: '#000000',
  },
}
SCSS
$custom: #b271c9;
$custom-light: #ca9bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b271c9",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 201
  },
  "hsl": {
    "h": 284.318,
    "s": 44.898,
    "l": 61.569
  },
  "oklch": {
    "l": 0.65069,
    "c": 0.14385,
    "h": 316.8
  },
  "luminance": 0.25492
}

Semantic roles & 50–950 ramp

primary
#B271C9
secondary
#C3DBBB
accent
#B82D52
background
#FCF9FD
surface
#F9F2FA
border
#D2CCD3
text
#130E15
muted
#827E83

Preview Lab

Preview with #B271C9

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

Preview Lab → · Contrast checker → · Palette generator →

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