#B271DC#B271DC

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

Color values

HEX#B271DC
RGBrgb(178, 113, 220)
HSLhsl(276, 60%, 65%)
HSVhsv(276, 49%, 86%)
CMYKcmyk(19.1%, 48.6%, 0%, 13.7%)
CIE-LABlab(58.46, 44.75, -44.93)
CIE-LCHlch(58.46, 63.41, 314.88°)
OKLaboklab(66.04% 0.1077 -0.1254)
OKLCHoklch(66.04% 0.165 310.7)
XYZxyz(37.1811, 26.4432, 70.8416)
Luminance0.2644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271DC #9BDC71
analogous
#7D71DC #B271DC #DC71D0
triadic
#B271DC #DCB271 #71DCB2
tetradic
#B271DC #DC7D71 #9BDC71 #71D0DC
square
#B271DC #DC7D71 #9BDC71 #71D0DC
split-complementary
#B271DC #D0DC71 #71DC7D
monochromatic
#772AA9 #9740D0 #B271DC #CDA2E8 #E7D3F4

Accessibility & contrast

On white

3.34
#B271DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#B271DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271DC
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271DC#FFFFFF#000000##000000
##B271DC1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5789E0
Deuteranopia (green-blind)
#698ED9
Tritanopia (blue-blind)
#AD829C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b271dc;
/* rgb */ color: rgb(178, 113, 220);
/* oklch */ color: oklch(66.0% 0.165 310.7);
Tailwind
colors: {
  custom: {
    50: '#cb9be7',
    500: '#b271dc',
    950: '#000000',
  },
}
SCSS
$custom: #b271dc;
$custom-light: #cb9be7;
$custom-dark: #000000;
JSON
{
  "hex": "#b271dc",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 276.449,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.66037,
    "c": 0.16527,
    "h": 310.7
  },
  "luminance": 0.26443
}

Semantic roles & 50–950 ramp

primary
#B271DC
secondary
#D1E6C2
accent
#C81D60
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B271DC

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

Preview Lab → · Contrast checker → · Palette generator →

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