#B371F7#B371F7

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

Color values

HEX#B371F7
RGBrgb(179, 113, 247)
HSLhsl(270, 89%, 71%)
HSVhsv(270, 54%, 97%)
CMYKcmyk(27.5%, 54.3%, 0%, 3.1%)
CIE-LABlab(59.99, 51.12, -57.53)
CIE-LCHlch(59.99, 76.96, 311.62°)
OKLaboklab(67.66% 0.111 -0.1621)
OKLCHoklch(67.66% 0.197 304.4)
XYZxyz(41.2804, 28.1095, 91.2286)
Luminance0.2811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B371F7 #B5F771
analogous
#7172F7 #B371F7 #F671F7
triadic
#B371F7 #F7B371 #71F7B3
tetradic
#B371F7 #F77172 #B5F771 #71F7F6
square
#B371F7 #F77172 #B5F771 #71F7F6
split-complementary
#B371F7 #F7F671 #72F771
monochromatic
#750DE1 #9437F4 #B371F7 #D2ABFA #EFE2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B371F7#FFFFFF#000000##000000
##B371F71.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)
#408FFB
Deuteranopia (green-blind)
#5791F4
Tritanopia (blue-blind)
#A78AA9
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b371f7;
/* rgb */ color: rgb(179, 113, 247);
/* oklch */ color: oklch(67.7% 0.197 304.4);
Tailwind
colors: {
  custom: {
    50: '#cd9cfa',
    500: '#b371f7',
    950: '#000000',
  },
}
SCSS
$custom: #b371f7;
$custom-light: #cd9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b371f7",
  "rgb": {
    "r": 179,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 269.552,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.67657,
    "c": 0.1965,
    "h": 304.4
  },
  "luminance": 0.28109
}

Semantic roles & 50–950 ramp

primary
#B371F7
secondary
#E2F4D0
accent
#E60074
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B371F7

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

Preview Lab → · Contrast checker → · Palette generator →

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