#B271DD#B271DD

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

Color values

HEX#B271DD
RGBrgb(178, 113, 221)
HSLhsl(276, 61%, 65%)
HSVhsv(276, 49%, 87%)
CMYKcmyk(19.5%, 48.9%, 0%, 13.3%)
CIE-LABlab(58.51, 44.97, -45.41)
CIE-LCHlch(58.51, 63.91, 314.72°)
OKLaboklab(66.09% 0.1078 -0.1268)
OKLCHoklch(66.09% 0.166 310.4)
XYZxyz(37.3140, 26.4963, 71.5412)
Luminance0.2650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271DD #9CDD71
analogous
#7C71DD #B271DD #DD71D2
triadic
#B271DD #DDB271 #71DDB2
tetradic
#B271DD #DD7C71 #9CDD71 #71D2DD
square
#B271DD #DD7C71 #9CDD71 #71D2DD
split-complementary
#B271DD #D2DD71 #71DD7C
monochromatic
#7729AB #9740D1 #B271DD #CDA2E9 #E8D4F5

Accessibility & contrast

On white

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

On black

6.30
#B271DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271DD
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271DD#FFFFFF#000000##000000
##B271DD1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#568AE1
Deuteranopia (green-blind)
#698EDA
Tritanopia (blue-blind)
#AD839D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b271dd;
/* rgb */ color: rgb(178, 113, 221);
/* oklch */ color: oklch(66.1% 0.166 310.4);
Tailwind
colors: {
  custom: {
    50: '#cb9be8',
    500: '#b271dd',
    950: '#000000',
  },
}
SCSS
$custom: #b271dd;
$custom-light: #cb9be8;
$custom-dark: #000000;
JSON
{
  "hex": "#b271dd",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 276.111,
    "s": 61.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.66091,
    "c": 0.16642,
    "h": 310.4
  },
  "luminance": 0.26496
}

Semantic roles & 50–950 ramp

primary
#B271DD
secondary
#D1E7C3
accent
#C91C61
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B271DD

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

Preview Lab → · Contrast checker → · Palette generator →

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