#B271EA#B271EA

#B271EA is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.8% C 0.181 H 307.0°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#B271EA
RGBrgb(178, 113, 234)
HSLhsl(272, 74%, 68%)
HSVhsv(272, 52%, 92%)
CMYKcmyk(23.9%, 51.7%, 0%, 8.2%)
CIE-LABlab(59.17, 47.88, -51.62)
CIE-LCHlch(59.17, 70.41, 312.85°)
OKLaboklab(66.8% 0.109 -0.1449)
OKLCHoklch(66.8% 0.181 307)
XYZxyz(39.1135, 27.2161, 81.0187)
Luminance0.2722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271EA #A9EA71
analogous
#7571EA #B271EA #EA71E6
triadic
#B271EA #EAB271 #71EAB2
tetradic
#B271EA #EA7571 #A9EA71 #71E6EA
square
#B271EA #EA7571 #A9EA71 #71E6EA
split-complementary
#B271EA #E6EA71 #71EA75
monochromatic
#761DC4 #953CE2 #B271EA #CFA6F2 #ECDCFA

Accessibility & contrast

On white

3.26
#B271EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#B271EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271EA
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271EA#FFFFFF#000000##000000
##B271EA1.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8CEE
Deuteranopia (green-blind)
#608FE7
Tritanopia (blue-blind)
#A986A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b271ea;
/* rgb */ color: rgb(178, 113, 234);
/* oklch */ color: oklch(66.8% 0.181 307.0);
Tailwind
colors: {
  custom: {
    50: '#cc9cf1',
    500: '#b271ea',
    950: '#000000',
  },
}
SCSS
$custom: #b271ea;
$custom-light: #cc9cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ea",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 272.231,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.66804,
    "c": 0.18133,
    "h": 307
  },
  "luminance": 0.27216
}

Semantic roles & 50–950 ramp

primary
#B271EA
secondary
#DAEEC9
accent
#D60F6B
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271EA

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

Preview Lab → · Contrast checker → · Palette generator →

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