#B978F9#B978F9

#B978F9 is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.4% C 0.190 H 305.3°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#B978F9
RGBrgb(185, 120, 249)
HSLhsl(270, 91%, 72%)
HSVhsv(270, 52%, 98%)
CMYKcmyk(25.7%, 51.8%, 0%, 2.4%)
CIE-LABlab(62.16, 49.37, -55.14)
CIE-LCHlch(62.16, 74.02, 311.84°)
OKLaboklab(69.44% 0.1096 -0.155)
OKLCHoklch(69.44% 0.19 305.3)
XYZxyz(43.8193, 30.5871, 93.1996)
Luminance0.3059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B978F9 #B8F978
analogous
#7978F9 #B978F9 #F978F8
triadic
#B978F9 #F9B978 #78F9B9
tetradic
#B978F9 #F97978 #B8F978 #78F8F9
square
#B978F9 #F97978 #B8F978 #78F8F9
split-complementary
#B978F9 #F8F978 #78F979
monochromatic
#7C0AEC #9B3DF6 #B978F9 #D7B3FC #F0E2FE

Accessibility & contrast

On white

2.95
#B978F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#B978F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B978F9
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B978F9#FFFFFF#000000##000000
##B978F91.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F94FD
Deuteranopia (green-blind)
#6396F6
Tritanopia (blue-blind)
#AE8FAD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b978f9;
/* rgb */ color: rgb(185, 120, 249);
/* oklch */ color: oklch(69.4% 0.190 305.3);
Tailwind
colors: {
  custom: {
    50: '#d1a1fc',
    500: '#b978f9',
    950: '#000000',
  },
}
SCSS
$custom: #b978f9;
$custom-light: #d1a1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b978f9",
  "rgb": {
    "r": 185,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 270.233,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69438,
    "c": 0.18982,
    "h": 305.3
  },
  "luminance": 0.30587
}

Semantic roles & 50–950 ramp

primary
#B978F9
secondary
#E5F6D5
accent
#E60072
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B978F9

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

Preview Lab → · Contrast checker → · Palette generator →

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