#B271DB#B271DB

#B271DB is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.0% C 0.164 H 310.9°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#B271DB
RGBrgb(178, 113, 219)
HSLhsl(277, 60%, 65%)
HSVhsv(277, 48%, 86%)
CMYKcmyk(18.7%, 48.4%, 0%, 14.1%)
CIE-LABlab(58.41, 44.53, -44.45)
CIE-LCHlch(58.41, 62.92, 315.05°)
OKLaboklab(65.98% 0.1076 -0.124)
OKLCHoklch(65.98% 0.164 310.9)
XYZxyz(37.0491, 26.3904, 70.1462)
Luminance0.2639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271DB #9ADB71
analogous
#7D71DB #B271DB #DB71CF
triadic
#B271DB #DBB271 #71DBB2
tetradic
#B271DB #DB7D71 #9ADB71 #71CFDB
square
#B271DB #DB7D71 #9ADB71 #71CFDB
split-complementary
#B271DB #CFDB71 #71DB7D
monochromatic
#772AA7 #9840CF #B271DB #CCA2E7 #E7D3F4

Accessibility & contrast

On white

3.35
#B271DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#B271DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271DB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271DB#FFFFFF#000000##000000
##B271DB1.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5889DF
Deuteranopia (green-blind)
#6A8ED8
Tritanopia (blue-blind)
#AD829C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b271db;
/* rgb */ color: rgb(178, 113, 219);
/* oklch */ color: oklch(66.0% 0.164 310.9);
Tailwind
colors: {
  custom: {
    50: '#cb9be6',
    500: '#b271db',
    950: '#000000',
  },
}
SCSS
$custom: #b271db;
$custom-light: #cb9be6;
$custom-dark: #000000;
JSON
{
  "hex": "#b271db",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 276.792,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.65984,
    "c": 0.16413,
    "h": 310.9
  },
  "luminance": 0.2639
}

Semantic roles & 50–950 ramp

primary
#B271DB
secondary
#D0E6C2
accent
#C71E60
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B271DB

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

Preview Lab → · Contrast checker → · Palette generator →

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