#B978F7#B978F7

#B978F7 is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.3% C 0.188 H 305.7°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#B978F7
RGBrgb(185, 120, 247)
HSLhsl(271, 89%, 72%)
HSVhsv(271, 51%, 97%)
CMYKcmyk(25.1%, 51.4%, 0%, 3.1%)
CIE-LABlab(62.05, 48.92, -54.21)
CIE-LCHlch(62.05, 73.02, 312.06°)
OKLaboklab(69.33% 0.1094 -0.1523)
OKLCHoklch(69.33% 0.188 305.7)
XYZxyz(43.5090, 30.4629, 91.5655)
Luminance0.3046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B978F7 #B6F778
analogous
#7A78F7 #B978F7 #F778F5
triadic
#B978F7 #F7B978 #78F7B9
tetradic
#B978F7 #F77A78 #B6F778 #78F5F7
square
#B978F7 #F77A78 #B6F778 #78F5F7
split-complementary
#B978F7 #F5F778 #78F77A
monochromatic
#7D0EE7 #9B3EF4 #B978F7 #D7B2FA #F0E2FD

Accessibility & contrast

On white

2.96
#B978F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#B978F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B978F7
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B978F7#FFFFFF#000000##000000
##B978F71.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5094FB
Deuteranopia (green-blind)
#6496F4
Tritanopia (blue-blind)
#AF8FAC
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b978f7;
/* rgb */ color: rgb(185, 120, 247);
/* oklch */ color: oklch(69.3% 0.188 305.7);
Tailwind
colors: {
  custom: {
    50: '#d1a1fa',
    500: '#b978f7',
    950: '#000000',
  },
}
SCSS
$custom: #b978f7;
$custom-light: #d1a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b978f7",
  "rgb": {
    "r": 185,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 270.709,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69325,
    "c": 0.18751,
    "h": 305.7
  },
  "luminance": 0.30463
}

Semantic roles & 50–950 ramp

primary
#B978F7
secondary
#E5F5D5
accent
#E50070
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B978F7

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

Preview Lab → · Contrast checker → · Palette generator →

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