#B271FE#B271FE

#B271FE is a light, highly saturated violet. Relative luminance 0.284; OKLCH L 68.0% C 0.204 H 302.6°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#B271FE
RGBrgb(178, 113, 254)
HSLhsl(268, 99%, 72%)
HSVhsv(268, 56%, 100%)
CMYKcmyk(29.9%, 55.5%, 0%, 0.4%)
CIE-LABlab(60.28, 52.52, -60.94)
CIE-LCHlch(60.28, 80.45, 310.75°)
OKLaboklab(67.97% 0.11 -0.1721)
OKLCHoklch(67.97% 0.204 302.6)
XYZxyz(42.1505, 28.4310, 97.0138)
Luminance0.2843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271FE #BDFE71
analogous
#7177FE #B271FE #F971FE
triadic
#B271FE #FEB271 #71FEB2
tetradic
#B271FE #FE7177 #BDFE71 #71FEF9
square
#B271FE #FE7177 #BDFE71 #71FEF9
split-complementary
#B271FE #FEF971 #77FE71
monochromatic
#7102F3 #9134FE #B271FE #D3AEFE #EFE1FF

Accessibility & contrast

On white

3.14
#B271FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#B271FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271FE
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271FE#FFFFFF#000000##000000
##B271FE1.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3790FF
Deuteranopia (green-blind)
#5091FB
Tritanopia (blue-blind)
#A48DAD
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b271fe;
/* rgb */ color: rgb(178, 113, 254);
/* oklch */ color: oklch(68.0% 0.204 302.6);
Tailwind
colors: {
  custom: {
    50: '#cd9cff',
    500: '#b271fe',
    950: '#000000',
  },
}
SCSS
$custom: #b271fe;
$custom-light: #cd9cff;
$custom-dark: #000000;
JSON
{
  "hex": "#b271fe",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 254
  },
  "hsl": {
    "h": 267.66,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.67972,
    "c": 0.20429,
    "h": 302.6
  },
  "luminance": 0.28431
}

Semantic roles & 50–950 ramp

primary
#B271FE
secondary
#E7F7D4
accent
#E6007C
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #B271FE

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

Preview Lab → · Contrast checker → · Palette generator →

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