#B271D5#B271D5

#B271D5 is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.7% C 0.157 H 312.7°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#B271D5
RGBrgb(178, 113, 213)
HSLhsl(279, 54%, 64%)
HSVhsv(279, 47%, 84%)
CMYKcmyk(16.4%, 46.9%, 0%, 16.5%)
CIE-LABlab(58.11, 43.22, -41.53)
CIE-LCHlch(58.11, 59.94, 316.14°)
OKLaboklab(65.67% 0.1068 -0.1155)
OKLCHoklch(65.67% 0.157 312.7)
XYZxyz(36.2734, 26.0801, 66.0610)
Luminance0.2608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271D5 #94D571
analogous
#8071D5 #B271D5 #D571C6
triadic
#B271D5 #D5B271 #71D5B2
tetradic
#B271D5 #D58071 #94D571 #71C6D5
square
#B271D5 #D58071 #94D571 #71C6D5
split-complementary
#B271D5 #C6D571 #71D580
monochromatic
#762E9D #9842C7 #B271D5 #CCA0E3 #E5CFF1

Accessibility & contrast

On white

3.38
#B271D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#B271D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271D5
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271D5#FFFFFF#000000##000000
##B271D51.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B88D9
Deuteranopia (green-blind)
#6D8DD2
Tritanopia (blue-blind)
#AF8099
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b271d5;
/* rgb */ color: rgb(178, 113, 213);
/* oklch */ color: oklch(65.7% 0.157 312.7);
Tailwind
colors: {
  custom: {
    50: '#cb9be2',
    500: '#b271d5',
    950: '#000000',
  },
}
SCSS
$custom: #b271d5;
$custom-light: #cb9be2;
$custom-dark: #000000;
JSON
{
  "hex": "#b271d5",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 213
  },
  "hsl": {
    "h": 279,
    "s": 54.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.65671,
    "c": 0.15731,
    "h": 312.7
  },
  "luminance": 0.26079
}

Semantic roles & 50–950 ramp

primary
#B271D5
secondary
#CCE2BF
accent
#C2245B
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B271D5

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

Preview Lab → · Contrast checker → · Palette generator →

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