#B271E3#B271E3

#B271E3 is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.4% C 0.173 H 308.7°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#B271E3
RGBrgb(178, 113, 227)
HSLhsl(274, 67%, 67%)
HSVhsv(274, 50%, 89%)
CMYKcmyk(21.6%, 50.2%, 0%, 11%)
CIE-LABlab(58.81, 46.30, -48.30)
CIE-LCHlch(58.81, 66.91, 313.79°)
OKLaboklab(66.42% 0.1084 -0.1352)
OKLCHoklch(66.42% 0.173 308.7)
XYZxyz(38.1277, 26.8218, 75.8267)
Luminance0.2682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271E3 #A2E371
analogous
#7971E3 #B271E3 #E371DB
triadic
#B271E3 #E3B271 #71E3B2
tetradic
#B271E3 #E37971 #A2E371 #71DBE3
square
#B271E3 #E37971 #A2E371 #71DBE3
split-complementary
#B271E3 #DBE371 #71E379
monochromatic
#7724B6 #963ED9 #B271E3 #CEA4ED #E9D7F7

Accessibility & contrast

On white

3.30
#B271E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#B271E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271E3
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271E3#FFFFFF#000000##000000
##B271E31.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#528BE7
Deuteranopia (green-blind)
#658EE0
Tritanopia (blue-blind)
#AB84A0
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b271e3;
/* rgb */ color: rgb(178, 113, 227);
/* oklch */ color: oklch(66.4% 0.173 308.7);
Tailwind
colors: {
  custom: {
    50: '#cb9cec',
    500: '#b271e3',
    950: '#000000',
  },
}
SCSS
$custom: #b271e3;
$custom-light: #cb9cec;
$custom-dark: #000000;
JSON
{
  "hex": "#b271e3",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 227
  },
  "hsl": {
    "h": 274.211,
    "s": 67.059,
    "l": 66.667
  },
  "oklch": {
    "l": 0.66415,
    "c": 0.17329,
    "h": 308.7
  },
  "luminance": 0.26821
}

Semantic roles & 50–950 ramp

primary
#B271E3
secondary
#D5EAC6
accent
#CF1766
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B271E3

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

Preview Lab → · Contrast checker → · Palette generator →

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