#B271FD#B271FD

#B271FD is a light, highly saturated violet. Relative luminance 0.284; OKLCH L 67.9% C 0.203 H 302.8°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#B271FD
RGBrgb(178, 113, 253)
HSLhsl(268, 97%, 72%)
HSVhsv(268, 55%, 99%)
CMYKcmyk(29.6%, 55.3%, 0%, 0.8%)
CIE-LABlab(60.22, 52.28, -60.48)
CIE-LCHlch(60.22, 79.95, 310.84°)
OKLaboklab(67.91% 0.11 -0.1708)
OKLCHoklch(67.91% 0.203 302.8)
XYZxyz(41.9908, 28.3671, 96.1727)
Luminance0.2837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271FD #BCFD71
analogous
#7176FD #B271FD #F871FD
triadic
#B271FD #FDB271 #71FDB2
tetradic
#B271FD #FD7176 #BCFD71 #71FDF8
square
#B271FD #FD7176 #BCFD71 #71FDF8
split-complementary
#B271FD #FDF871 #76FD71
monochromatic
#7103F0 #9135FC #B271FD #D3ADFE #EFE1FF

Accessibility & contrast

On white

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

On black

6.67
#B271FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271FD
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271FD#FFFFFF#000000##000000
##B271FD1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3990FF
Deuteranopia (green-blind)
#5191FA
Tritanopia (blue-blind)
#A48CAC
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b271fd;
/* rgb */ color: rgb(178, 113, 253);
/* oklch */ color: oklch(67.9% 0.203 302.8);
Tailwind
colors: {
  custom: {
    50: '#cd9cff',
    500: '#b271fd',
    950: '#000000',
  },
}
SCSS
$custom: #b271fd;
$custom-light: #cd9cff;
$custom-dark: #000000;
JSON
{
  "hex": "#b271fd",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 253
  },
  "hsl": {
    "h": 267.857,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.67912,
    "c": 0.20315,
    "h": 302.8
  },
  "luminance": 0.28367
}

Semantic roles & 50–950 ramp

primary
#B271FD
secondary
#E6F7D3
accent
#E6007B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #B271FD

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

Preview Lab → · Contrast checker → · Palette generator →

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