#B271E6#B271E6

#B271E6 is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.6% C 0.177 H 308.0°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#B271E6
RGBrgb(178, 113, 230)
HSLhsl(273, 70%, 67%)
HSVhsv(273, 51%, 90%)
CMYKcmyk(22.6%, 50.9%, 0%, 9.8%)
CIE-LABlab(58.96, 46.98, -49.73)
CIE-LCHlch(58.96, 68.41, 313.37°)
OKLaboklab(66.58% 0.1087 -0.1393)
OKLCHoklch(66.58% 0.177 308)
XYZxyz(38.5453, 26.9889, 78.0264)
Luminance0.2699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271E6 #A5E671
analogous
#7771E6 #B271E6 #E671E0
triadic
#B271E6 #E6B271 #71E6B2
tetradic
#B271E6 #E67771 #A5E671 #71E0E6
square
#B271E6 #E67771 #A5E671 #71E0E6
split-complementary
#B271E6 #E0E671 #71E677
monochromatic
#7721BC #963DDD #B271E6 #CEA5EF #EAD9F8

Accessibility & contrast

On white

3.28
#B271E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#B271E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271E6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271E6#FFFFFF#000000##000000
##B271E61.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#508BEA
Deuteranopia (green-blind)
#638FE3
Tritanopia (blue-blind)
#AB85A1
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b271e6;
/* rgb */ color: rgb(178, 113, 230);
/* oklch */ color: oklch(66.6% 0.177 308.0);
Tailwind
colors: {
  custom: {
    50: '#cb9cee',
    500: '#b271e6',
    950: '#000000',
  },
}
SCSS
$custom: #b271e6;
$custom-light: #cb9cee;
$custom-dark: #000000;
JSON
{
  "hex": "#b271e6",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 230
  },
  "hsl": {
    "h": 273.333,
    "s": 70.06,
    "l": 67.255
  },
  "oklch": {
    "l": 0.6658,
    "c": 0.17673,
    "h": 308
  },
  "luminance": 0.26988
}

Semantic roles & 50–950 ramp

primary
#B271E6
secondary
#D7ECC7
accent
#D21368
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B271E6

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

Preview Lab → · Contrast checker → · Palette generator →

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