#B271F0#B271F0

#B271F0 is a light, vivid violet. Relative luminance 0.276; OKLCH L 67.1% C 0.188 H 305.6°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#B271F0
RGBrgb(178, 113, 240)
HSLhsl(271, 81%, 69%)
HSVhsv(271, 53%, 94%)
CMYKcmyk(25.8%, 52.9%, 0%, 5.9%)
CIE-LABlab(59.50, 49.25, -54.45)
CIE-LCHlch(59.50, 73.42, 312.13°)
OKLaboklab(67.15% 0.1095 -0.1531)
OKLCHoklch(67.15% 0.188 305.6)
XYZxyz(39.9901, 27.5668, 85.6354)
Luminance0.2757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271F0 #AFF071
analogous
#7371F0 #B271F0 #F071EE
triadic
#B271F0 #F0B271 #71F0B2
tetradic
#B271F0 #F07371 #AFF071 #71EEF0
square
#B271F0 #F07371 #AFF071 #71EEF0
split-complementary
#B271F0 #EEF071 #71F073
monochromatic
#7616D1 #943AEA #B271F0 #D0A8F6 #EEE0FC

Accessibility & contrast

On white

3.22
#B271F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#B271F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271F0
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271F0#FFFFFF#000000##000000
##B271F01.003.226.516.51
#FFFFFF3.221.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#478DF4
Deuteranopia (green-blind)
#5C90ED
Tritanopia (blue-blind)
#A888A6
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b271f0;
/* rgb */ color: rgb(178, 113, 240);
/* oklch */ color: oklch(67.1% 0.188 305.6);
Tailwind
colors: {
  custom: {
    50: '#cc9cf5',
    500: '#b271f0',
    950: '#000000',
  },
}
SCSS
$custom: #b271f0;
$custom-light: #cc9cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#b271f0",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 240
  },
  "hsl": {
    "h": 270.709,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.67145,
    "c": 0.18822,
    "h": 305.6
  },
  "luminance": 0.27567
}

Semantic roles & 50–950 ramp

primary
#B271F0
secondary
#DEF1CC
accent
#DD0870
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271F0

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

Preview Lab → · Contrast checker → · Palette generator →

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