#B271CA#B271CA

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

Color values

HEX#B271CA
RGBrgb(178, 113, 202)
HSLhsl(284, 46%, 62%)
HSVhsv(284, 44%, 79%)
CMYKcmyk(11.9%, 44.1%, 0%, 20.8%)
CIE-LABlab(57.60, 40.89, -36.12)
CIE-LCHlch(57.60, 54.56, 318.55°)
OKLaboklab(65.12% 0.1051 -0.0999)
OKLCHoklch(65.12% 0.145 316.4)
XYZxyz(34.9243, 25.5405, 58.9557)
Luminance0.2554 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271CA #89CA71
analogous
#8671CA #B271CA #CA71B6
triadic
#B271CA #CAB271 #71CAB2
tetradic
#B271CA #CA8671 #89CA71 #71B6CA
square
#B271CA #CA8671 #89CA71 #71B6CA
split-complementary
#B271CA #B6CA71 #71CA86
monochromatic
#75348C #9A45B9 #B271CA #CA9EDB #E2CAEB

Accessibility & contrast

On white

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

On black

6.11
#B271CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271CA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271CA#FFFFFF#000000##000000
##B271CA1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6186CD
Deuteranopia (green-blind)
#738CC7
Tritanopia (blue-blind)
#B17D94
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b271ca;
/* rgb */ color: rgb(178, 113, 202);
/* oklch */ color: oklch(65.1% 0.145 316.4);
Tailwind
colors: {
  custom: {
    50: '#ca9bda',
    500: '#b271ca',
    950: '#000000',
  },
}
SCSS
$custom: #b271ca;
$custom-light: #ca9bda;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ca",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 283.82,
    "s": 45.641,
    "l": 61.765
  },
  "oklch": {
    "l": 0.65118,
    "c": 0.14496,
    "h": 316.4
  },
  "luminance": 0.25539
}

Semantic roles & 50–950 ramp

primary
#B271CA
secondary
#C4DCBB
accent
#B92D52
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B271CA

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

Preview Lab → · Contrast checker → · Palette generator →

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