#B271EF#B271EF

#B271EF is a light, vivid violet. Relative luminance 0.275; OKLCH L 67.1% C 0.187 H 305.8°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#B271EF
RGBrgb(178, 113, 239)
HSLhsl(271, 80%, 69%)
HSVhsv(271, 53%, 94%)
CMYKcmyk(25.5%, 52.7%, 0%, 6.3%)
CIE-LABlab(59.44, 49.02, -53.98)
CIE-LCHlch(59.44, 72.92, 312.25°)
OKLaboklab(67.09% 0.1094 -0.1518)
OKLCHoklch(67.09% 0.187 305.8)
XYZxyz(39.8419, 27.5075, 84.8552)
Luminance0.2751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271EF #AEEF71
analogous
#7371EF #B271EF #EF71ED
triadic
#B271EF #EFB271 #71EFB2
tetradic
#B271EF #EF7371 #AEEF71 #71EDEF
square
#B271EF #EF7371 #AEEF71 #71EDEF
split-complementary
#B271EF #EDEF71 #71EF73
monochromatic
#7617CE #943AE9 #B271EF #D0A8F5 #EEDFFB

Accessibility & contrast

On white

3.23
#B271EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#B271EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271EF
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271EF#FFFFFF#000000##000000
##B271EF1.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#488DF3
Deuteranopia (green-blind)
#5D8FEC
Tritanopia (blue-blind)
#A888A5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b271ef;
/* rgb */ color: rgb(178, 113, 239);
/* oklch */ color: oklch(67.1% 0.187 305.8);
Tailwind
colors: {
  custom: {
    50: '#cc9cf5',
    500: '#b271ef',
    950: '#000000',
  },
}
SCSS
$custom: #b271ef;
$custom-light: #cc9cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#b271ef",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 270.952,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.67088,
    "c": 0.18708,
    "h": 305.8
  },
  "luminance": 0.27507
}

Semantic roles & 50–950 ramp

primary
#B271EF
secondary
#DDF0CB
accent
#DC096F
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271EF

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

Preview Lab → · Contrast checker → · Palette generator →

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