#B271EB#B271EB

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

Color values

HEX#B271EB
RGBrgb(178, 113, 235)
HSLhsl(272, 75%, 68%)
HSVhsv(272, 52%, 92%)
CMYKcmyk(24.3%, 51.9%, 0%, 7.8%)
CIE-LABlab(59.23, 48.11, -52.10)
CIE-LCHlch(59.23, 70.91, 312.72°)
OKLaboklab(66.86% 0.1091 -0.1463)
OKLCHoklch(66.86% 0.182 306.7)
XYZxyz(39.2575, 27.2738, 81.7774)
Luminance0.2727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271EB #AAEB71
analogous
#7571EB #B271EB #EB71E7
triadic
#B271EB #EBB271 #71EBB2
tetradic
#B271EB #EB7571 #AAEB71 #71E7EB
square
#B271EB #EB7571 #AAEB71 #71E7EB
split-complementary
#B271EB #E7EB71 #71EB75
monochromatic
#761CC6 #953BE3 #B271EB #CFA7F3 #ECDCFA

Accessibility & contrast

On white

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

On black

6.45
#B271EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271EB
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271EB#FFFFFF#000000##000000
##B271EB1.003.256.456.45
#FFFFFF3.251.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8CEF
Deuteranopia (green-blind)
#608FE8
Tritanopia (blue-blind)
#A987A4
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b271eb;
/* rgb */ color: rgb(178, 113, 235);
/* oklch */ color: oklch(66.9% 0.182 306.7);
Tailwind
colors: {
  custom: {
    50: '#cc9cf2',
    500: '#b271eb',
    950: '#000000',
  },
}
SCSS
$custom: #b271eb;
$custom-light: #cc9cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b271eb",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 271.967,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.6686,
    "c": 0.18248,
    "h": 306.7
  },
  "luminance": 0.27273
}

Semantic roles & 50–950 ramp

primary
#B271EB
secondary
#DBEEC9
accent
#D70E6C
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271EB

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

Preview Lab → · Contrast checker → · Palette generator →

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