#B271FA#B271FA

#B271FA is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.7% C 0.200 H 303.4°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#B271FA
RGBrgb(178, 113, 250)
HSLhsl(268, 93%, 71%)
HSVhsv(268, 55%, 98%)
CMYKcmyk(28.8%, 54.8%, 0%, 2%)
CIE-LABlab(60.05, 51.58, -59.10)
CIE-LCHlch(60.05, 78.44, 311.11°)
OKLaboklab(67.73% 0.1099 -0.1667)
OKLCHoklch(67.73% 0.2 303.4)
XYZxyz(41.5167, 28.1774, 93.6755)
Luminance0.2818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271FA #B9FA71
analogous
#7174FA #B271FA #F671FA
triadic
#B271FA #FAB271 #71FAB2
tetradic
#B271FA #FA7174 #B9FA71 #71FAF6
square
#B271FA #FA7174 #B9FA71 #71FAF6
split-complementary
#B271FA #FAF671 #74FA71
monochromatic
#7308E8 #9236F8 #B271FA #D2ACFC #EFE1FE

Accessibility & contrast

On white

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

On black

6.64
#B271FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271FA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271FA#FFFFFF#000000##000000
##B271FA1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C8FFF
Deuteranopia (green-blind)
#5491F7
Tritanopia (blue-blind)
#A58BAB
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b271fa;
/* rgb */ color: rgb(178, 113, 250);
/* oklch */ color: oklch(67.7% 0.200 303.4);
Tailwind
colors: {
  custom: {
    50: '#cd9cfd',
    500: '#b271fa',
    950: '#000000',
  },
}
SCSS
$custom: #b271fa;
$custom-light: #cd9cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b271fa",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 268.467,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.67732,
    "c": 0.19971,
    "h": 303.4
  },
  "luminance": 0.28177
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B271FA

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

Preview Lab → · Contrast checker → · Palette generator →

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