#B271D2#B271D2

#B271D2 is a light, vivid purple. Relative luminance 0.259; OKLCH L 65.5% C 0.154 H 313.7°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#B271D2
RGBrgb(178, 113, 210)
HSLhsl(280, 52%, 63%)
HSVhsv(280, 46%, 82%)
CMYKcmyk(15.2%, 46.2%, 0%, 17.6%)
CIE-LABlab(57.97, 42.58, -40.06)
CIE-LCHlch(57.97, 58.47, 316.74°)
OKLaboklab(65.52% 0.1064 -0.1113)
OKLCHoklch(65.52% 0.154 313.7)
XYZxyz(35.8962, 25.9292, 64.0742)
Luminance0.2593 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271D2 #91D271
analogous
#8171D2 #B271D2 #D271C1
triadic
#B271D2 #D2B271 #71D2B2
tetradic
#B271D2 #D28171 #91D271 #71C1D2
square
#B271D2 #D28171 #91D271 #71C1D2
split-complementary
#B271D2 #C1D271 #71D281
monochromatic
#763098 #9943C3 #B271D2 #CB9FE1 #E4CEEF

Accessibility & contrast

On white

3.39
#B271D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#B271D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271D2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271D2#FFFFFF#000000##000000
##B271D21.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D88D5
Deuteranopia (green-blind)
#6F8DCF
Tritanopia (blue-blind)
#AF7F98
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b271d2;
/* rgb */ color: rgb(178, 113, 210);
/* oklch */ color: oklch(65.5% 0.154 313.7);
Tailwind
colors: {
  custom: {
    50: '#cb9be0',
    500: '#b271d2',
    950: '#000000',
  },
}
SCSS
$custom: #b271d2;
$custom-light: #cb9be0;
$custom-dark: #000000;
JSON
{
  "hex": "#b271d2",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 280.206,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.65517,
    "c": 0.15392,
    "h": 313.7
  },
  "luminance": 0.25928
}

Semantic roles & 50–950 ramp

primary
#B271D2
secondary
#CAE1BE
accent
#BF2659
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B271D2

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

Preview Lab → · Contrast checker → · Palette generator →

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