#B271FB#B271FB

#B271FB is a light, highly saturated violet. Relative luminance 0.282; OKLCH L 67.8% C 0.201 H 303.2°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#B271FB
RGBrgb(178, 113, 251)
HSLhsl(268, 95%, 71%)
HSVhsv(268, 55%, 98%)
CMYKcmyk(29.1%, 55%, 0%, 1.6%)
CIE-LABlab(60.11, 51.81, -59.56)
CIE-LCHlch(60.11, 78.94, 311.02°)
OKLaboklab(67.79% 0.1099 -0.1681)
OKLCHoklch(67.79% 0.201 303.2)
XYZxyz(41.6739, 28.2403, 94.5035)
Luminance0.2824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271FB #BAFB71
analogous
#7175FB #B271FB #F771FB
triadic
#B271FB #FBB271 #71FBB2
tetradic
#B271FB #FB7175 #BAFB71 #71FBF7
square
#B271FB #FB7175 #BAFB71 #71FBF7
split-complementary
#B271FB #FBF771 #75FB71
monochromatic
#7207EB #9235F9 #B271FB #D2ADFD #EFE1FE

Accessibility & contrast

On white

3.16
#B271FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#B271FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271FB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271FB#FFFFFF#000000##000000
##B271FB1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8FFF
Deuteranopia (green-blind)
#5391F8
Tritanopia (blue-blind)
#A58CAB
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b271fb;
/* rgb */ color: rgb(178, 113, 251);
/* oklch */ color: oklch(67.8% 0.201 303.2);
Tailwind
colors: {
  custom: {
    50: '#cd9cfd',
    500: '#b271fb',
    950: '#000000',
  },
}
SCSS
$custom: #b271fb;
$custom-light: #cd9cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b271fb",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 268.261,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.67792,
    "c": 0.20086,
    "h": 303.2
  },
  "luminance": 0.2824
}

Semantic roles & 50–950 ramp

primary
#B271FB
secondary
#E5F6D2
accent
#E60079
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B271FB

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

Preview Lab → · Contrast checker → · Palette generator →

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