#B271F9#B271F9

#B271F9 is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.7% C 0.199 H 303.6°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#B271F9
RGBrgb(178, 113, 249)
HSLhsl(269, 92%, 71%)
HSVhsv(269, 55%, 98%)
CMYKcmyk(28.5%, 54.6%, 0%, 2.4%)
CIE-LABlab(59.99, 51.34, -58.64)
CIE-LCHlch(59.99, 77.94, 311.20°)
OKLaboklab(67.67% 0.1099 -0.1654)
OKLCHoklch(67.67% 0.199 303.6)
XYZxyz(41.3603, 28.1149, 92.8519)
Luminance0.2812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271F9 #B8F971
analogous
#7174F9 #B271F9 #F671F9
triadic
#B271F9 #F9B271 #71F9B2
tetradic
#B271F9 #F97174 #B8F971 #71F9F6
square
#B271F9 #F97174 #B8F971 #71F9F6
split-complementary
#B271F9 #F9F671 #74F971
monochromatic
#730AE6 #9236F7 #B271F9 #D2ACFB #EFE2FE

Accessibility & contrast

On white

3.17
#B271F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#B271F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271F9
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271F9#FFFFFF#000000##000000
##B271F91.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8FFE
Deuteranopia (green-blind)
#5490F6
Tritanopia (blue-blind)
#A58BAA
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b271f9;
/* rgb */ color: rgb(178, 113, 249);
/* oklch */ color: oklch(67.7% 0.199 303.6);
Tailwind
colors: {
  custom: {
    50: '#cc9cfc',
    500: '#b271f9',
    950: '#000000',
  },
}
SCSS
$custom: #b271f9;
$custom-light: #cc9cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b271f9",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 249
  },
  "hsl": {
    "h": 268.676,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.67672,
    "c": 0.19856,
    "h": 303.6
  },
  "luminance": 0.28115
}

Semantic roles & 50–950 ramp

primary
#B271F9
secondary
#E4F5D1
accent
#E60078
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271F9

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

Preview Lab → · Contrast checker → · Palette generator →

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