#B271FF#B271FF

#B271FF is a light, highly saturated violet. Relative luminance 0.285; OKLCH L 68.0% C 0.205 H 302.4°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#B271FF
RGBrgb(178, 113, 255)
HSLhsl(267, 100%, 72%)
HSVhsv(267, 56%, 100%)
CMYKcmyk(30.2%, 55.7%, 0%, 0%)
CIE-LABlab(60.33, 52.75, -61.40)
CIE-LCHlch(60.33, 80.95, 310.67°)
OKLaboklab(68.03% 0.11 -0.1735)
OKLCHoklch(68.03% 0.205 302.4)
XYZxyz(42.3111, 28.4952, 97.8594)
Luminance0.2849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271FF #BEFF71
analogous
#7177FF #B271FF #F971FF
triadic
#B271FF #FFB271 #71FFB2
tetradic
#B271FF #FF7177 #BEFF71 #71FFF9
square
#B271FF #FF7177 #BEFF71 #71FFF9
split-complementary
#B271FF #FFF971 #77FF71
monochromatic
#7000F6 #9134FF #B271FF #D3AEFF #EEE0FF

Accessibility & contrast

On white

3.13
#B271FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#B271FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271FF
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271FF#FFFFFF#000000##000000
##B271FF1.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3690FF
Deuteranopia (green-blind)
#4F91FC
Tritanopia (blue-blind)
#A38DAD
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b271ff;
/* rgb */ color: rgb(178, 113, 255);
/* oklch */ color: oklch(68.0% 0.205 302.4);
Tailwind
colors: {
  custom: {
    50: '#cd9cff',
    500: '#b271ff',
    950: '#000000',
  },
}
SCSS
$custom: #b271ff;
$custom-light: #cd9cff;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ff",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 255
  },
  "hsl": {
    "h": 267.465,
    "s": 100,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68033,
    "c": 0.20544,
    "h": 302.4
  },
  "luminance": 0.28495
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B271FF

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

Preview Lab → · Contrast checker → · Palette generator →

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