#B271CC#B271CC

#B271CC is a light, vivid purple. Relative luminance 0.256; OKLCH L 65.2% C 0.147 H 315.7°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#B271CC
RGBrgb(178, 113, 204)
HSLhsl(283, 47%, 62%)
HSVhsv(283, 45%, 80%)
CMYKcmyk(12.7%, 44.6%, 0%, 20%)
CIE-LABlab(57.69, 41.31, -37.11)
CIE-LCHlch(57.69, 55.53, 318.07°)
OKLaboklab(65.22% 0.1054 -0.1027)
OKLCHoklch(65.22% 0.147 315.7)
XYZxyz(35.1627, 25.6358, 60.2110)
Luminance0.2564 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271CC #8BCC71
analogous
#8571CC #B271CC #CC71B9
triadic
#B271CC #CCB271 #71CCB2
tetradic
#B271CC #CC8571 #8BCC71 #71B9CC
square
#B271CC #CC8571 #8BCC71 #71B9CC
split-complementary
#B271CC #B9CC71 #71CC85
monochromatic
#75338F #9A44BC #B271CC #CA9EDC #E3CBEC

Accessibility & contrast

On white

3.43
#B271CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#B271CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271CC
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271CC#FFFFFF#000000##000000
##B271CC1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6087CF
Deuteranopia (green-blind)
#728DC9
Tritanopia (blue-blind)
#B17E95
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b271cc;
/* rgb */ color: rgb(178, 113, 204);
/* oklch */ color: oklch(65.2% 0.147 315.7);
Tailwind
colors: {
  custom: {
    50: '#cb9bdc',
    500: '#b271cc',
    950: '#000000',
  },
}
SCSS
$custom: #b271cc;
$custom-light: #cb9bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b271cc",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 282.857,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.65217,
    "c": 0.14718,
    "h": 315.7
  },
  "luminance": 0.25635
}

Semantic roles & 50–950 ramp

primary
#B271CC
secondary
#C5DDBC
accent
#BA2B54
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B271CC

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

Preview Lab → · Contrast checker → · Palette generator →

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