#B271F6#B271F6

#B271F6 is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.5% C 0.195 H 304.2°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#B271F6
RGBrgb(178, 113, 246)
HSLhsl(269, 88%, 70%)
HSVhsv(269, 54%, 96%)
CMYKcmyk(27.6%, 54.1%, 0%, 3.5%)
CIE-LABlab(59.82, 50.64, -57.25)
CIE-LCHlch(59.82, 76.43, 311.50°)
OKLaboklab(67.5% 0.1098 -0.1613)
OKLCHoklch(67.5% 0.195 304.2)
XYZxyz(40.8961, 27.9292, 90.4073)
Luminance0.2793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271F6 #B5F671
analogous
#7173F6 #B271F6 #F471F6
triadic
#B271F6 #F6B271 #71F6B2
tetradic
#B271F6 #F67173 #B5F671 #71F6F4
square
#B271F6 #F67173 #B5F671 #71F6F4
split-complementary
#B271F6 #F6F471 #73F671
monochromatic
#740EDE #9337F2 #B271F6 #D1ABFA #EFE2FD

Accessibility & contrast

On white

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

On black

6.59
#B271F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271F6
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271F6#FFFFFF#000000##000000
##B271F61.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#418EFA
Deuteranopia (green-blind)
#5790F3
Tritanopia (blue-blind)
#A68AA9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b271f6;
/* rgb */ color: rgb(178, 113, 246);
/* oklch */ color: oklch(67.5% 0.195 304.2);
Tailwind
colors: {
  custom: {
    50: '#cc9cfa',
    500: '#b271f6',
    950: '#000000',
  },
}
SCSS
$custom: #b271f6;
$custom-light: #cc9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b271f6",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 246
  },
  "hsl": {
    "h": 269.323,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.67495,
    "c": 0.19512,
    "h": 304.2
  },
  "luminance": 0.27929
}

Semantic roles & 50–950 ramp

primary
#B271F6
secondary
#E2F4CF
accent
#E50175
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271F6

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

Preview Lab → · Contrast checker → · Palette generator →

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