#B371E9#B371E9

#B371E9 is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.9% C 0.180 H 307.6°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#B371E9
RGBrgb(179, 113, 233)
HSLhsl(273, 73%, 68%)
HSVhsv(273, 52%, 91%)
CMYKcmyk(23.2%, 51.5%, 0%, 8.6%)
CIE-LABlab(59.23, 47.91, -50.97)
CIE-LCHlch(59.23, 69.95, 313.23°)
OKLaboklab(66.85% 0.1102 -0.1429)
OKLCHoklch(66.85% 0.18 307.6)
XYZxyz(39.2006, 27.2776, 80.2750)
Luminance0.2728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B371E9 #A7E971
analogous
#7771E9 #B371E9 #E971E3
triadic
#B371E9 #E9B371 #71E9B3
tetradic
#B371E9 #E97771 #A7E971 #71E3E9
square
#B371E9 #E97771 #A7E971 #71E3E9
split-complementary
#B371E9 #E3E971 #71E977
monochromatic
#781EC2 #973CE1 #B371E9 #CFA6F1 #ECDBF9

Accessibility & contrast

On white

3.25
#B371E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#B371E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B371E9
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B371E9#FFFFFF#000000##000000
##B371E91.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8CED
Deuteranopia (green-blind)
#628FE6
Tritanopia (blue-blind)
#AB86A3
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b371e9;
/* rgb */ color: rgb(179, 113, 233);
/* oklch */ color: oklch(66.9% 0.180 307.6);
Tailwind
colors: {
  custom: {
    50: '#cc9cf0',
    500: '#b371e9',
    950: '#000000',
  },
}
SCSS
$custom: #b371e9;
$custom-light: #cc9cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#b371e9",
  "rgb": {
    "r": 179,
    "g": 113,
    "b": 233
  },
  "hsl": {
    "h": 273,
    "s": 73.171,
    "l": 67.843
  },
  "oklch": {
    "l": 0.66853,
    "c": 0.18048,
    "h": 307.6
  },
  "luminance": 0.27277
}

Semantic roles & 50–950 ramp

primary
#B371E9
secondary
#D9EDC8
accent
#D51069
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B371E9

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

Preview Lab → · Contrast checker → · Palette generator →

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