#B371F6#B371F6

#B371F6 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.6% C 0.195 H 304.6°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#B371F6
RGBrgb(179, 113, 246)
HSLhsl(270, 88%, 70%)
HSVhsv(270, 54%, 96%)
CMYKcmyk(27.2%, 54.1%, 0%, 3.5%)
CIE-LABlab(59.93, 50.89, -57.07)
CIE-LCHlch(59.93, 76.46, 311.72°)
OKLaboklab(67.6% 0.111 -0.1608)
OKLCHoklch(67.6% 0.195 304.6)
XYZxyz(41.1265, 28.0480, 90.4181)
Luminance0.2805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B371F6 #B4F671
analogous
#7172F6 #B371F6 #F571F6
triadic
#B371F6 #F6B371 #71F6B3
tetradic
#B371F6 #F67172 #B4F671 #71F6F5
square
#B371F6 #F67172 #B4F671 #71F6F5
split-complementary
#B371F6 #F6F571 #72F671
monochromatic
#760EDE #9437F2 #B371F6 #D2ABFA #F0E2FD

Accessibility & contrast

On white

3.18
#B371F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#B371F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B371F6
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B371F6#FFFFFF#000000##000000
##B371F61.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#418FFA
Deuteranopia (green-blind)
#5890F3
Tritanopia (blue-blind)
#A78AA9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b371f6;
/* rgb */ color: rgb(179, 113, 246);
/* oklch */ color: oklch(67.6% 0.195 304.6);
Tailwind
colors: {
  custom: {
    50: '#cd9cfa',
    500: '#b371f6',
    950: '#000000',
  },
}
SCSS
$custom: #b371f6;
$custom-light: #cd9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b371f6",
  "rgb": {
    "r": 179,
    "g": 113,
    "b": 246
  },
  "hsl": {
    "h": 269.774,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.67598,
    "c": 0.19536,
    "h": 304.6
  },
  "luminance": 0.28048
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B371F6

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

Preview Lab → · Contrast checker → · Palette generator →

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