#B271E4#B271E4

#B271E4 is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.5% C 0.174 H 308.5°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#B271E4
RGBrgb(178, 113, 228)
HSLhsl(274, 68%, 67%)
HSVhsv(274, 50%, 89%)
CMYKcmyk(21.9%, 50.4%, 0%, 10.6%)
CIE-LABlab(58.86, 46.53, -48.77)
CIE-LCHlch(58.86, 67.40, 313.65°)
OKLaboklab(66.47% 0.1085 -0.1366)
OKLCHoklch(66.47% 0.174 308.5)
XYZxyz(38.2661, 26.8772, 76.5557)
Luminance0.2688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271E4 #A3E471
analogous
#7971E4 #B271E4 #E471DD
triadic
#B271E4 #E4B271 #71E4B2
tetradic
#B271E4 #E47971 #A3E471 #71DDE4
square
#B271E4 #E47971 #A3E471 #71DDE4
split-complementary
#B271E4 #DDE471 #71E479
monochromatic
#7723B8 #963EDA #B271E4 #CEA4EE #EAD8F8

Accessibility & contrast

On white

3.29
#B271E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#B271E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271E4
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271E4#FFFFFF#000000##000000
##B271E41.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#518BE8
Deuteranopia (green-blind)
#658EE1
Tritanopia (blue-blind)
#AB85A0
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b271e4;
/* rgb */ color: rgb(178, 113, 228);
/* oklch */ color: oklch(66.5% 0.174 308.5);
Tailwind
colors: {
  custom: {
    50: '#cb9ced',
    500: '#b271e4',
    950: '#000000',
  },
}
SCSS
$custom: #b271e4;
$custom-light: #cb9ced;
$custom-dark: #000000;
JSON
{
  "hex": "#b271e4",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 273.913,
    "s": 68.047,
    "l": 66.863
  },
  "oklch": {
    "l": 0.6647,
    "c": 0.17443,
    "h": 308.5
  },
  "luminance": 0.26877
}

Semantic roles & 50–950 ramp

primary
#B271E4
secondary
#D6EBC6
accent
#D01667
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B271E4

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

Preview Lab → · Contrast checker → · Palette generator →

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