#B271EE#B271EE

#B271EE is a light, vivid violet. Relative luminance 0.274; OKLCH L 67.0% C 0.186 H 306.0°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#B271EE
RGBrgb(178, 113, 238)
HSLhsl(271, 79%, 69%)
HSVhsv(271, 53%, 93%)
CMYKcmyk(25.2%, 52.5%, 0%, 6.7%)
CIE-LABlab(59.39, 48.79, -53.51)
CIE-LCHlch(59.39, 72.42, 312.36°)
OKLaboklab(67.03% 0.1093 -0.1504)
OKLCHoklch(67.03% 0.186 306)
XYZxyz(39.6946, 27.4486, 84.0793)
Luminance0.2745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271EE #ADEE71
analogous
#7471EE #B271EE #EE71EC
triadic
#B271EE #EEB271 #71EEB2
tetradic
#B271EE #EE7471 #ADEE71 #71ECEE
square
#B271EE #EE7471 #ADEE71 #71ECEE
split-complementary
#B271EE #ECEE71 #71EE74
monochromatic
#7618CC #943AE7 #B271EE #D0A8F5 #EDDEFB

Accessibility & contrast

On white

3.24
#B271EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#B271EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271EE
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271EE#FFFFFF#000000##000000
##B271EE1.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#498DF2
Deuteranopia (green-blind)
#5E8FEB
Tritanopia (blue-blind)
#A888A5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b271ee;
/* rgb */ color: rgb(178, 113, 238);
/* oklch */ color: oklch(67.0% 0.186 306.0);
Tailwind
colors: {
  custom: {
    50: '#cc9cf4',
    500: '#b271ee',
    950: '#000000',
  },
}
SCSS
$custom: #b271ee;
$custom-light: #cc9cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ee",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 238
  },
  "hsl": {
    "h": 271.2,
    "s": 78.616,
    "l": 68.824
  },
  "oklch": {
    "l": 0.6703,
    "c": 0.18593,
    "h": 306
  },
  "luminance": 0.27448
}

Semantic roles & 50–950 ramp

primary
#B271EE
secondary
#DDF0CB
accent
#DB0B6F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271EE

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

Preview Lab → · Contrast checker → · Palette generator →

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