#B271F7#B271F7

#B271F7 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.6% C 0.196 H 304.0°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#B271F7
RGBrgb(178, 113, 247)
HSLhsl(269, 89%, 71%)
HSVhsv(269, 54%, 97%)
CMYKcmyk(27.9%, 54.3%, 0%, 3.1%)
CIE-LABlab(59.88, 50.87, -57.71)
CIE-LCHlch(59.88, 76.93, 311.40°)
OKLaboklab(67.55% 0.1098 -0.1627)
OKLCHoklch(67.55% 0.196 304)
XYZxyz(41.0500, 27.9908, 91.2178)
Luminance0.2799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271F7 #B6F771
analogous
#7173F7 #B271F7 #F571F7
triadic
#B271F7 #F7B271 #71F7B2
tetradic
#B271F7 #F77173 #B6F771 #71F7F5
square
#B271F7 #F77173 #B6F771 #71F7F5
split-complementary
#B271F7 #F7F571 #73F771
monochromatic
#740DE1 #9337F4 #B271F7 #D1ABFA #EFE2FD

Accessibility & contrast

On white

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

On black

6.60
#B271F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271F7
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271F7#FFFFFF#000000##000000
##B271F71.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#408FFB
Deuteranopia (green-blind)
#5690F4
Tritanopia (blue-blind)
#A68AA9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b271f7;
/* rgb */ color: rgb(178, 113, 247);
/* oklch */ color: oklch(67.6% 0.196 304.0);
Tailwind
colors: {
  custom: {
    50: '#cc9cfa',
    500: '#b271f7',
    950: '#000000',
  },
}
SCSS
$custom: #b271f7;
$custom-light: #cc9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b271f7",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 269.104,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.67554,
    "c": 0.19627,
    "h": 304
  },
  "luminance": 0.27991
}

Semantic roles & 50–950 ramp

primary
#B271F7
secondary
#E2F4D0
accent
#E60076
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271F7

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

Preview Lab → · Contrast checker → · Palette generator →

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