#B271EC#B271EC

#B271EC is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.9% C 0.184 H 306.5°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#B271EC
RGBrgb(178, 113, 236)
HSLhsl(272, 76%, 68%)
HSVhsv(272, 52%, 93%)
CMYKcmyk(24.6%, 52.1%, 0%, 7.5%)
CIE-LABlab(59.28, 48.34, -52.57)
CIE-LCHlch(59.28, 71.41, 312.60°)
OKLaboklab(66.92% 0.1092 -0.1476)
OKLCHoklch(66.92% 0.184 306.5)
XYZxyz(39.4024, 27.3317, 82.5404)
Luminance0.2733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271EC #ABEC71
analogous
#7471EC #B271EC #EC71E9
triadic
#B271EC #ECB271 #71ECB2
tetradic
#B271EC #EC7471 #ABEC71 #71E9EC
square
#B271EC #EC7471 #ABEC71 #71E9EC
split-complementary
#B271EC #E9EC71 #71EC74
monochromatic
#761BC8 #953BE5 #B271EC #CFA7F3 #EDDDFA

Accessibility & contrast

On white

3.25
#B271EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#B271EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271EC
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271EC#FFFFFF#000000##000000
##B271EC1.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8CF0
Deuteranopia (green-blind)
#5F8FE9
Tritanopia (blue-blind)
#A987A4
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b271ec;
/* rgb */ color: rgb(178, 113, 236);
/* oklch */ color: oklch(66.9% 0.184 306.5);
Tailwind
colors: {
  custom: {
    50: '#cc9cf3',
    500: '#b271ec',
    950: '#000000',
  },
}
SCSS
$custom: #b271ec;
$custom-light: #cc9cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ec",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 271.707,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66917,
    "c": 0.18362,
    "h": 306.5
  },
  "luminance": 0.27331
}

Semantic roles & 50–950 ramp

primary
#B271EC
secondary
#DBEFCA
accent
#D90D6D
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271EC

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

Preview Lab → · Contrast checker → · Palette generator →

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