#B371EC#B371EC

#B371EC is a light, vivid violet. Relative luminance 0.275; OKLCH L 67.0% C 0.184 H 306.9°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#B371EC
RGBrgb(179, 113, 236)
HSLhsl(272, 76%, 68%)
HSVhsv(272, 52%, 93%)
CMYKcmyk(24.2%, 52.1%, 0%, 7.5%)
CIE-LABlab(59.39, 48.59, -52.39)
CIE-LCHlch(59.39, 71.45, 312.85°)
OKLaboklab(67.02% 0.1104 -0.1471)
OKLCHoklch(67.02% 0.184 306.9)
XYZxyz(39.6328, 27.4505, 82.5512)
Luminance0.2745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B371EC #AAEC71
analogous
#7571EC #B371EC #EC71E8
triadic
#B371EC #ECB371 #71ECB3
tetradic
#B371EC #EC7571 #AAEC71 #71E8EC
square
#B371EC #EC7571 #AAEC71 #71E8EC
split-complementary
#B371EC #E8EC71 #71EC75
monochromatic
#781BC8 #963BE5 #B371EC #D0A7F3 #EDDDFA

Accessibility & contrast

On white

3.24
#B371EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#B371EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B371EC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B371EC#FFFFFF#000000##000000
##B371EC1.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8DF0
Deuteranopia (green-blind)
#6090E9
Tritanopia (blue-blind)
#AA87A4
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b371ec;
/* rgb */ color: rgb(179, 113, 236);
/* oklch */ color: oklch(67.0% 0.184 306.9);
Tailwind
colors: {
  custom: {
    50: '#cc9cf3',
    500: '#b371ec',
    950: '#000000',
  },
}
SCSS
$custom: #b371ec;
$custom-light: #cc9cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#b371ec",
  "rgb": {
    "r": 179,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 272.195,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.67022,
    "c": 0.18391,
    "h": 306.9
  },
  "luminance": 0.2745
}

Semantic roles & 50–950 ramp

primary
#B371EC
secondary
#DBEFCA
accent
#D90D6B
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B371EC

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

Preview Lab → · Contrast checker → · Palette generator →

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