#B271F8#B271F8

#B271F8 is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.6% C 0.197 H 303.8°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#B271F8
RGBrgb(178, 113, 248)
HSLhsl(269, 91%, 71%)
HSVhsv(269, 54%, 97%)
CMYKcmyk(28.2%, 54.4%, 0%, 2.7%)
CIE-LABlab(59.94, 51.11, -58.17)
CIE-LCHlch(59.94, 77.44, 311.30°)
OKLaboklab(67.61% 0.1098 -0.164)
OKLCHoklch(67.61% 0.197 303.8)
XYZxyz(41.2048, 28.0527, 92.0327)
Luminance0.2805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271F8 #B7F871
analogous
#7173F8 #B271F8 #F671F8
triadic
#B271F8 #F8B271 #71F8B2
tetradic
#B271F8 #F87173 #B7F871 #71F8F6
square
#B271F8 #F87173 #B7F871 #71F8F6
split-complementary
#B271F8 #F8F671 #73F871
monochromatic
#730BE3 #9237F5 #B271F8 #D2ABFB #EFE2FE

Accessibility & contrast

On white

3.18
#B271F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#B271F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271F8
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271F8#FFFFFF#000000##000000
##B271F81.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8FFC
Deuteranopia (green-blind)
#5590F5
Tritanopia (blue-blind)
#A58BAA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b271f8;
/* rgb */ color: rgb(178, 113, 248);
/* oklch */ color: oklch(67.6% 0.197 303.8);
Tailwind
colors: {
  custom: {
    50: '#cc9cfb',
    500: '#b271f8',
    950: '#000000',
  },
}
SCSS
$custom: #b271f8;
$custom-light: #cc9cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#b271f8",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 268.889,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.67613,
    "c": 0.19742,
    "h": 303.8
  },
  "luminance": 0.28053
}

Semantic roles & 50–950 ramp

primary
#B271F8
secondary
#E3F5D0
accent
#E60077
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271F8

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

Preview Lab → · Contrast checker → · Palette generator →

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