#B271CE#B271CE

#B271CE is a light, vivid purple. Relative luminance 0.257; OKLCH L 65.3% C 0.149 H 315.0°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#B271CE
RGBrgb(178, 113, 206)
HSLhsl(282, 49%, 63%)
HSVhsv(282, 45%, 81%)
CMYKcmyk(13.6%, 45.1%, 0%, 19.2%)
CIE-LABlab(57.78, 41.73, -38.10)
CIE-LCHlch(57.78, 56.50, 317.61°)
OKLaboklab(65.32% 0.1057 -0.1056)
OKLCHoklch(65.32% 0.149 315)
XYZxyz(35.4041, 25.7324, 61.4824)
Luminance0.2573 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271CE #8DCE71
analogous
#8371CE #B271CE #CE71BC
triadic
#B271CE #CEB271 #71CEB2
tetradic
#B271CE #CE8371 #8DCE71 #71BCCE
square
#B271CE #CE8371 #8DCE71 #71BCCE
split-complementary
#B271CE #BCCE71 #71CE83
monochromatic
#753292 #9944BE #B271CE #CB9EDE #E3CCED

Accessibility & contrast

On white

3.42
#B271CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#B271CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271CE
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271CE#FFFFFF#000000##000000
##B271CE1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F87D1
Deuteranopia (green-blind)
#718DCB
Tritanopia (blue-blind)
#B07E96
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b271ce;
/* rgb */ color: rgb(178, 113, 206);
/* oklch */ color: oklch(65.3% 0.149 315.0);
Tailwind
colors: {
  custom: {
    50: '#cb9bdd',
    500: '#b271ce',
    950: '#000000',
  },
}
SCSS
$custom: #b271ce;
$custom-light: #cb9bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ce",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 281.935,
    "s": 48.691,
    "l": 62.549
  },
  "oklch": {
    "l": 0.65316,
    "c": 0.14942,
    "h": 315
  },
  "luminance": 0.25731
}

Semantic roles & 50–950 ramp

primary
#B271CE
secondary
#C7DEBC
accent
#BC2A56
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B271CE

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

Preview Lab → · Contrast checker → · Palette generator →

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