#B271F3#B271F3

#B271F3 is a light, vivid violet. Relative luminance 0.277; OKLCH L 67.3% C 0.192 H 304.9°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#B271F3
RGBrgb(178, 113, 243)
HSLhsl(270, 84%, 70%)
HSVhsv(270, 53%, 95%)
CMYKcmyk(26.7%, 53.5%, 0%, 4.7%)
CIE-LABlab(59.66, 49.94, -55.85)
CIE-LCHlch(59.66, 74.93, 311.80°)
OKLaboklab(67.32% 0.1096 -0.1572)
OKLCHoklch(67.32% 0.192 304.9)
XYZxyz(40.4394, 27.7465, 88.0018)
Luminance0.2775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271F3 #B2F371
analogous
#7171F3 #B271F3 #F371F3
triadic
#B271F3 #F3B271 #71F3B2
tetradic
#B271F3 #F37171 #B2F371 #71F3F3
square
#B271F3 #F37171 #B2F371 #71F3F3
split-complementary
#B271F3 #F3F371 #71F371
monochromatic
#7512D7 #9339EE #B271F3 #D1A9F8 #EFE2FD

Accessibility & contrast

On white

3.21
#B271F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#B271F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271F3
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271F3#FFFFFF#000000##000000
##B271F31.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#448EF7
Deuteranopia (green-blind)
#5A90F0
Tritanopia (blue-blind)
#A789A7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b271f3;
/* rgb */ color: rgb(178, 113, 243);
/* oklch */ color: oklch(67.3% 0.192 304.9);
Tailwind
colors: {
  custom: {
    50: '#cc9cf8',
    500: '#b271f3',
    950: '#000000',
  },
}
SCSS
$custom: #b271f3;
$custom-light: #cc9cf8;
$custom-dark: #000000;
JSON
{
  "hex": "#b271f3",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 243
  },
  "hsl": {
    "h": 270,
    "s": 84.416,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67319,
    "c": 0.19167,
    "h": 304.9
  },
  "luminance": 0.27746
}

Semantic roles & 50–950 ramp

primary
#B271F3
secondary
#E0F2CE
accent
#E10573
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271F3

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

Preview Lab → · Contrast checker → · Palette generator →

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