#B271DE#B271DE

#B271DE is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.1% C 0.168 H 310.1°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#B271DE
RGBrgb(178, 113, 222)
HSLhsl(276, 62%, 66%)
HSVhsv(276, 49%, 87%)
CMYKcmyk(19.8%, 49.1%, 0%, 12.9%)
CIE-LABlab(58.56, 45.19, -45.90)
CIE-LCHlch(58.56, 64.41, 314.56°)
OKLaboklab(66.14% 0.1079 -0.1282)
OKLCHoklch(66.14% 0.168 310.1)
XYZxyz(37.4476, 26.5498, 72.2450)
Luminance0.2655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271DE #9DDE71
analogous
#7B71DE #B271DE #DE71D3
triadic
#B271DE #DEB271 #71DEB2
tetradic
#B271DE #DE7B71 #9DDE71 #71D3DE
square
#B271DE #DE7B71 #9DDE71 #71D3DE
split-complementary
#B271DE #D3DE71 #71DE7B
monochromatic
#7728AD #973FD2 #B271DE #CDA3EA #E8D4F5

Accessibility & contrast

On white

3.33
#B271DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#B271DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271DE
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271DE#FFFFFF#000000##000000
##B271DE1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#568AE2
Deuteranopia (green-blind)
#688EDB
Tritanopia (blue-blind)
#AD839D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b271de;
/* rgb */ color: rgb(178, 113, 222);
/* oklch */ color: oklch(66.1% 0.168 310.1);
Tailwind
colors: {
  custom: {
    50: '#cb9be9',
    500: '#b271de',
    950: '#000000',
  },
}
SCSS
$custom: #b271de;
$custom-light: #cb9be9;
$custom-dark: #000000;
JSON
{
  "hex": "#b271de",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 222
  },
  "hsl": {
    "h": 275.78,
    "s": 62.286,
    "l": 65.686
  },
  "oklch": {
    "l": 0.66144,
    "c": 0.16756,
    "h": 310.1
  },
  "luminance": 0.26549
}

Semantic roles & 50–950 ramp

primary
#B271DE
secondary
#D2E8C3
accent
#CA1B62
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B271DE

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

Preview Lab → · Contrast checker → · Palette generator →

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