#B271F5#B271F5

#B271F5 is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.4% C 0.194 H 304.4°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#B271F5
RGBrgb(178, 113, 245)
HSLhsl(270, 87%, 70%)
HSVhsv(270, 54%, 96%)
CMYKcmyk(27.3%, 53.9%, 0%, 3.9%)
CIE-LABlab(59.77, 50.41, -56.78)
CIE-LCHlch(59.77, 75.93, 311.60°)
OKLaboklab(67.44% 0.1097 -0.16)
OKLCHoklch(67.44% 0.194 304.4)
XYZxyz(40.7431, 27.8680, 89.6011)
Luminance0.2787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271F5 #B4F571
analogous
#7172F5 #B271F5 #F471F5
triadic
#B271F5 #F5B271 #71F5B2
tetradic
#B271F5 #F57172 #B4F571 #71F5F4
square
#B271F5 #F57172 #B4F571 #71F5F4
split-complementary
#B271F5 #F5F471 #72F571
monochromatic
#7410DC #9338F1 #B271F5 #D1AAF9 #EFE2FD

Accessibility & contrast

On white

3.19
#B271F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#B271F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271F5
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271F5#FFFFFF#000000##000000
##B271F51.003.196.576.57
#FFFFFF3.191.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#428EF9
Deuteranopia (green-blind)
#5890F2
Tritanopia (blue-blind)
#A68AA8
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b271f5;
/* rgb */ color: rgb(178, 113, 245);
/* oklch */ color: oklch(67.4% 0.194 304.4);
Tailwind
colors: {
  custom: {
    50: '#cc9cf9',
    500: '#b271f5',
    950: '#000000',
  },
}
SCSS
$custom: #b271f5;
$custom-light: #cc9cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b271f5",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 269.545,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67436,
    "c": 0.19397,
    "h": 304.4
  },
  "luminance": 0.27868
}

Semantic roles & 50–950 ramp

primary
#B271F5
secondary
#E1F3CF
accent
#E30274
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271F5

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

Preview Lab → · Contrast checker → · Palette generator →

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