#B271E1#B271E1

#B271E1 is a light, vivid violet. Relative luminance 0.267; OKLCH L 66.3% C 0.171 H 309.3°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#B271E1
RGBrgb(178, 113, 225)
HSLhsl(275, 65%, 66%)
HSVhsv(275, 50%, 88%)
CMYKcmyk(20.9%, 49.8%, 0%, 11.8%)
CIE-LABlab(58.71, 45.86, -47.34)
CIE-LCHlch(58.71, 65.91, 314.09°)
OKLaboklab(66.31% 0.1082 -0.1324)
OKLCHoklch(66.31% 0.171 309.3)
XYZxyz(37.8532, 26.7120, 74.3814)
Luminance0.2671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271E1 #A0E171
analogous
#7A71E1 #B271E1 #E171D8
triadic
#B271E1 #E1B271 #71E1B2
tetradic
#B271E1 #E17A71 #A0E171 #71D8E1
square
#B271E1 #E17A71 #A0E171 #71D8E1
split-complementary
#B271E1 #D8E171 #71E17A
monochromatic
#7726B2 #973ED6 #B271E1 #CDA4EC #E9D6F6

Accessibility & contrast

On white

3.31
#B271E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#B271E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271E1
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271E1#FFFFFF#000000##000000
##B271E11.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#538AE5
Deuteranopia (green-blind)
#668EDE
Tritanopia (blue-blind)
#AC849F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b271e1;
/* rgb */ color: rgb(178, 113, 225);
/* oklch */ color: oklch(66.3% 0.171 309.3);
Tailwind
colors: {
  custom: {
    50: '#cb9ceb',
    500: '#b271e1',
    950: '#000000',
  },
}
SCSS
$custom: #b271e1;
$custom-light: #cb9ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#b271e1",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 225
  },
  "hsl": {
    "h": 274.821,
    "s": 65.116,
    "l": 66.275
  },
  "oklch": {
    "l": 0.66306,
    "c": 0.171,
    "h": 309.3
  },
  "luminance": 0.26711
}

Semantic roles & 50–950 ramp

primary
#B271E1
secondary
#D4E9C5
accent
#CD1964
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B271E1

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

Preview Lab → · Contrast checker → · Palette generator →

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