#B271C2#B271C2

#B271C2 is a light, vivid purple. Relative luminance 0.252; OKLCH L 64.7% C 0.136 H 319.5°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#B271C2
RGBrgb(178, 113, 194)
HSLhsl(288, 40%, 60%)
HSVhsv(288, 42%, 76%)
CMYKcmyk(8.2%, 41.8%, 0%, 23.9%)
CIE-LABlab(57.24, 39.24, -32.12)
CIE-LCHlch(57.24, 50.71, 320.70°)
OKLaboklab(64.74% 0.1036 -0.0884)
OKLCHoklch(64.74% 0.136 319.5)
XYZxyz(34.0016, 25.1714, 54.0959)
Luminance0.2517 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271C2 #81C271
analogous
#8971C2 #B271C2 #C271A9
triadic
#B271C2 #C2B271 #71C2B2
tetradic
#B271C2 #C28971 #81C271 #71A9C2
square
#B271C2 #C28971 #81C271 #71A9C2
split-complementary
#B271C2 #A9C271 #71C289
monochromatic
#733781 #994AAC #B271C2 #C99CD4 #E0C7E7

Accessibility & contrast

On white

3.48
#B271C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#B271C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271C2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271C2#FFFFFF#000000##000000
##B271C21.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6585C5
Deuteranopia (green-blind)
#768CC0
Tritanopia (blue-blind)
#B37B90
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #b271c2;
/* rgb */ color: rgb(178, 113, 194);
/* oklch */ color: oklch(64.7% 0.136 319.5);
Tailwind
colors: {
  custom: {
    50: '#ca9bd4',
    500: '#b271c2',
    950: '#000000',
  },
}
SCSS
$custom: #b271c2;
$custom-light: #ca9bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#b271c2",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 194
  },
  "hsl": {
    "h": 288.148,
    "s": 39.901,
    "l": 60.196
  },
  "oklch": {
    "l": 0.64735,
    "c": 0.13617,
    "h": 319.5
  },
  "luminance": 0.2517
}

Semantic roles & 50–950 ramp

primary
#B271C2
secondary
#BED7B8
accent
#B3334C
background
#FCF9FD
surface
#F9F2FA
border
#D2CCD3
text
#130E14
muted
#827E83

Preview Lab

Preview with #B271C2

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

Preview Lab → · Contrast checker → · Palette generator →

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