#B271CF#B271CF

#B271CF is a light, vivid purple. Relative luminance 0.258; OKLCH L 65.4% C 0.151 H 314.7°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#B271CF
RGBrgb(178, 113, 207)
HSLhsl(281, 49%, 63%)
HSVhsv(281, 45%, 81%)
CMYKcmyk(14%, 45.4%, 0%, 18.8%)
CIE-LABlab(57.83, 41.94, -38.59)
CIE-LCHlch(57.83, 56.99, 317.38°)
OKLaboklab(65.37% 0.1059 -0.107)
OKLCHoklch(65.37% 0.151 314.7)
XYZxyz(35.5259, 25.7811, 62.1242)
Luminance0.2578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271CF #8ECF71
analogous
#8371CF #B271CF #CF71BD
triadic
#B271CF #CFB271 #71CFB2
tetradic
#B271CF #CF8371 #8ECF71 #71BDCF
square
#B271CF #CF8371 #8ECF71 #71BDCF
split-complementary
#B271CF #BDCF71 #71CF83
monochromatic
#763294 #9943C0 #B271CF #CB9FDE #E4CCEE

Accessibility & contrast

On white

3.41
#B271CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#B271CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271CF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271CF#FFFFFF#000000##000000
##B271CF1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F87D2
Deuteranopia (green-blind)
#708DCC
Tritanopia (blue-blind)
#B07F96
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b271cf;
/* rgb */ color: rgb(178, 113, 207);
/* oklch */ color: oklch(65.4% 0.151 314.7);
Tailwind
colors: {
  custom: {
    50: '#cb9bde',
    500: '#b271cf',
    950: '#000000',
  },
}
SCSS
$custom: #b271cf;
$custom-light: #cb9bde;
$custom-dark: #000000;
JSON
{
  "hex": "#b271cf",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 281.489,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.65366,
    "c": 0.15055,
    "h": 314.7
  },
  "luminance": 0.2578
}

Semantic roles & 50–950 ramp

primary
#B271CF
secondary
#C7DFBD
accent
#BD2956
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B271CF

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

Preview Lab → · Contrast checker → · Palette generator →

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