#B271FC#B271FC

#B271FC is a light, highly saturated violet. Relative luminance 0.283; OKLCH L 67.9% C 0.202 H 303.0°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#B271FC
RGBrgb(178, 113, 252)
HSLhsl(268, 96%, 72%)
HSVhsv(268, 55%, 99%)
CMYKcmyk(29.4%, 55.2%, 0%, 1.2%)
CIE-LABlab(60.16, 52.05, -60.02)
CIE-LCHlch(60.16, 79.44, 310.93°)
OKLaboklab(67.85% 0.11 -0.1694)
OKLCHoklch(67.85% 0.202 303)
XYZxyz(41.8319, 28.3035, 95.3359)
Luminance0.2830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271FC #BBFC71
analogous
#7176FC #B271FC #F871FC
triadic
#B271FC #FCB271 #71FCB2
tetradic
#B271FC #FC7176 #BBFC71 #71FCF8
square
#B271FC #FC7176 #BBFC71 #71FCF8
split-complementary
#B271FC #FCF871 #76FC71
monochromatic
#7205EE #9235FB #B271FC #D3ADFD #EFE1FE

Accessibility & contrast

On white

3.15
#B271FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#B271FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271FC
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271FC#FFFFFF#000000##000000
##B271FC1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A90FF
Deuteranopia (green-blind)
#5291F9
Tritanopia (blue-blind)
#A48CAC
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b271fc;
/* rgb */ color: rgb(178, 113, 252);
/* oklch */ color: oklch(67.9% 0.202 303.0);
Tailwind
colors: {
  custom: {
    50: '#cd9cfe',
    500: '#b271fc',
    950: '#000000',
  },
}
SCSS
$custom: #b271fc;
$custom-light: #cd9cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b271fc",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 268.058,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.67852,
    "c": 0.202,
    "h": 303
  },
  "luminance": 0.28304
}

Semantic roles & 50–950 ramp

primary
#B271FC
secondary
#E6F6D3
accent
#E6007A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B271FC

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

Preview Lab → · Contrast checker → · Palette generator →

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