#B371EF#B371EF

#B371EF is a light, vivid violet. Relative luminance 0.276; OKLCH L 67.2% C 0.187 H 306.2°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#B371EF
RGBrgb(179, 113, 239)
HSLhsl(271, 80%, 69%)
HSVhsv(271, 53%, 94%)
CMYKcmyk(25.1%, 52.7%, 0%, 6.3%)
CIE-LABlab(59.55, 49.28, -53.80)
CIE-LCHlch(59.55, 72.96, 312.49°)
OKLaboklab(67.19% 0.1106 -0.1512)
OKLCHoklch(67.19% 0.187 306.2)
XYZxyz(40.0723, 27.6263, 84.8660)
Luminance0.2763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B371EF #ADEF71
analogous
#7471EF #B371EF #EF71EC
triadic
#B371EF #EFB371 #71EFB3
tetradic
#B371EF #EF7471 #ADEF71 #71ECEF
square
#B371EF #EF7471 #ADEF71 #71ECEF
split-complementary
#B371EF #ECEF71 #71EF74
monochromatic
#7717CE #963AE9 #B371EF #D0A8F5 #EEDFFB

Accessibility & contrast

On white

3.22
#B371EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#B371EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B371EF
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B371EF#FFFFFF#000000##000000
##B371EF1.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#488DF3
Deuteranopia (green-blind)
#5E90EC
Tritanopia (blue-blind)
#A988A5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b371ef;
/* rgb */ color: rgb(179, 113, 239);
/* oklch */ color: oklch(67.2% 0.187 306.2);
Tailwind
colors: {
  custom: {
    50: '#cd9cf5',
    500: '#b371ef',
    950: '#000000',
  },
}
SCSS
$custom: #b371ef;
$custom-light: #cd9cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#b371ef",
  "rgb": {
    "r": 179,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 271.429,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.67192,
    "c": 0.18735,
    "h": 306.2
  },
  "luminance": 0.27626
}

Semantic roles & 50–950 ramp

primary
#B371EF
secondary
#DDF0CB
accent
#DC096E
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #B371EF

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

Preview Lab → · Contrast checker → · Palette generator →

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