#B271ED#B271ED

#B271ED is a light, vivid violet. Relative luminance 0.274; OKLCH L 67.0% C 0.185 H 306.3°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#B271ED
RGBrgb(178, 113, 237)
HSLhsl(271, 78%, 69%)
HSVhsv(271, 52%, 93%)
CMYKcmyk(24.9%, 52.3%, 0%, 7.1%)
CIE-LABlab(59.33, 48.56, -53.04)
CIE-LCHlch(59.33, 71.91, 312.48°)
OKLaboklab(66.97% 0.1093 -0.149)
OKLCHoklch(66.97% 0.185 306.3)
XYZxyz(39.5481, 27.3900, 83.3077)
Luminance0.2739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271ED #ACED71
analogous
#7471ED #B271ED #ED71EA
triadic
#B271ED #EDB271 #71EDB2
tetradic
#B271ED #ED7471 #ACED71 #71EAED
square
#B271ED #ED7471 #ACED71 #71EAED
split-complementary
#B271ED #EAED71 #71ED74
monochromatic
#761ACA #953BE6 #B271ED #CFA7F4 #EDDEFB

Accessibility & contrast

On white

3.24
#B271ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#B271ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271ED
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271ED#FFFFFF#000000##000000
##B271ED1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b271ed;
/* rgb */ color: rgb(178, 113, 237);
/* oklch */ color: oklch(67.0% 0.185 306.3);
Tailwind
colors: {
  custom: {
    50: '#cc9cf3',
    500: '#b271ed',
    950: '#000000',
  },
}
SCSS
$custom: #b271ed;
$custom-light: #cc9cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ed",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 237
  },
  "hsl": {
    "h": 271.452,
    "s": 77.5,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66973,
    "c": 0.18477,
    "h": 306.3
  },
  "luminance": 0.2739
}

Semantic roles & 50–950 ramp

primary
#B271ED
secondary
#DCEFCA
accent
#DA0C6E
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271ED

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

Preview Lab → · Contrast checker → · Palette generator →

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