#B271DA#B271DA

#B271DA is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.9% C 0.163 H 311.2°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#B271DA
RGBrgb(178, 113, 218)
HSLhsl(277, 59%, 65%)
HSVhsv(277, 48%, 85%)
CMYKcmyk(18.3%, 48.2%, 0%, 14.5%)
CIE-LABlab(58.36, 44.31, -43.96)
CIE-LCHlch(58.36, 62.42, 315.22°)
OKLaboklab(65.93% 0.1074 -0.1226)
OKLCHoklch(65.93% 0.163 311.2)
XYZxyz(36.9178, 26.3379, 69.4550)
Luminance0.2634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271DA #99DA71
analogous
#7E71DA #B271DA #DA71CD
triadic
#B271DA #DAB271 #71DAB2
tetradic
#B271DA #DA7E71 #99DA71 #71CDDA
square
#B271DA #DA7E71 #99DA71 #71CDDA
split-complementary
#B271DA #CDDA71 #71DA7E
monochromatic
#772BA5 #9840CD #B271DA #CCA2E7 #E7D2F3

Accessibility & contrast

On white

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

On black

6.27
#B271DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271DA
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271DA#FFFFFF#000000##000000
##B271DA1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5889DE
Deuteranopia (green-blind)
#6B8ED7
Tritanopia (blue-blind)
#AE829B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #b271da;
/* rgb */ color: rgb(178, 113, 218);
/* oklch */ color: oklch(65.9% 0.163 311.2);
Tailwind
colors: {
  custom: {
    50: '#cb9be6',
    500: '#b271da',
    950: '#000000',
  },
}
SCSS
$custom: #b271da;
$custom-light: #cb9be6;
$custom-dark: #000000;
JSON
{
  "hex": "#b271da",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 218
  },
  "hsl": {
    "h": 277.143,
    "s": 58.659,
    "l": 64.902
  },
  "oklch": {
    "l": 0.65931,
    "c": 0.16299,
    "h": 311.2
  },
  "luminance": 0.26337
}

Semantic roles & 50–950 ramp

primary
#B271DA
secondary
#CFE5C1
accent
#C61F5F
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B271DA

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

Preview Lab → · Contrast checker → · Palette generator →

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