#B271E7#B271E7

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

Color values

HEX#B271E7
RGBrgb(178, 113, 231)
HSLhsl(273, 71%, 67%)
HSVhsv(273, 51%, 91%)
CMYKcmyk(22.9%, 51.1%, 0%, 9.4%)
CIE-LABlab(59.02, 47.20, -50.20)
CIE-LCHlch(59.02, 68.91, 313.24°)
OKLaboklab(66.64% 0.1088 -0.1407)
OKLCHoklch(66.64% 0.178 307.7)
XYZxyz(38.6862, 27.0452, 78.7681)
Luminance0.2705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271E7 #A6E771
analogous
#7771E7 #B271E7 #E771E1
triadic
#B271E7 #E7B271 #71E7B2
tetradic
#B271E7 #E77771 #A6E771 #71E1E7
square
#B271E7 #E77771 #A6E771 #71E1E7
split-complementary
#B271E7 #E1E771 #71E777
monochromatic
#7720BE #963DDE #B271E7 #CEA5F0 #EBDAF9

Accessibility & contrast

On white

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

On black

6.41
#B271E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271E7
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271E7#FFFFFF#000000##000000
##B271E71.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8BEB
Deuteranopia (green-blind)
#638FE4
Tritanopia (blue-blind)
#AA86A2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b271e7;
/* rgb */ color: rgb(178, 113, 231);
/* oklch */ color: oklch(66.6% 0.178 307.7);
Tailwind
colors: {
  custom: {
    50: '#cc9cef',
    500: '#b271e7',
    950: '#000000',
  },
}
SCSS
$custom: #b271e7;
$custom-light: #cc9cef;
$custom-dark: #000000;
JSON
{
  "hex": "#b271e7",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 273.051,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.66636,
    "c": 0.17788,
    "h": 307.7
  },
  "luminance": 0.27045
}

Semantic roles & 50–950 ramp

primary
#B271E7
secondary
#D8ECC7
accent
#D31269
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B271E7

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

Preview Lab → · Contrast checker → · Palette generator →

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