#B271E8#B271E8

#B271E8 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.7% C 0.179 H 307.5°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#B271E8
RGBrgb(178, 113, 232)
HSLhsl(273, 72%, 68%)
HSVhsv(273, 51%, 91%)
CMYKcmyk(23.3%, 51.3%, 0%, 9%)
CIE-LABlab(59.07, 47.43, -50.68)
CIE-LCHlch(59.07, 69.41, 313.10°)
OKLaboklab(66.69% 0.1089 -0.1421)
OKLCHoklch(66.69% 0.179 307.5)
XYZxyz(38.8278, 27.1019, 79.5140)
Luminance0.2710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271E8 #A7E871
analogous
#7671E8 #B271E8 #E871E3
triadic
#B271E8 #E8B271 #71E8B2
tetradic
#B271E8 #E87671 #A7E871 #71E3E8
square
#B271E8 #E87671 #A7E871 #71E3E8
split-complementary
#B271E8 #E3E871 #71E876
monochromatic
#771FC0 #953CDF #B271E8 #CFA6F1 #EBDAF9

Accessibility & contrast

On white

3.27
#B271E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#B271E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271E8
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271E8#FFFFFF#000000##000000
##B271E81.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8CEC
Deuteranopia (green-blind)
#628FE5
Tritanopia (blue-blind)
#AA86A2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b271e8;
/* rgb */ color: rgb(178, 113, 232);
/* oklch */ color: oklch(66.7% 0.179 307.5);
Tailwind
colors: {
  custom: {
    50: '#cc9cf0',
    500: '#b271e8',
    950: '#000000',
  },
}
SCSS
$custom: #b271e8;
$custom-light: #cc9cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#b271e8",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 232
  },
  "hsl": {
    "h": 272.773,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.66691,
    "c": 0.17903,
    "h": 307.5
  },
  "luminance": 0.27101
}

Semantic roles & 50–950 ramp

primary
#B271E8
secondary
#D9EDC8
accent
#D4116A
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B271E8

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

Preview Lab → · Contrast checker → · Palette generator →

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