#B978F8#B978F8

#B978F8 is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.4% C 0.189 H 305.5°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#B978F8
RGBrgb(185, 120, 248)
HSLhsl(270, 90%, 72%)
HSVhsv(270, 52%, 97%)
CMYKcmyk(25.4%, 51.6%, 0%, 2.7%)
CIE-LABlab(62.10, 49.14, -54.67)
CIE-LCHlch(62.10, 73.52, 311.95°)
OKLaboklab(69.38% 0.1095 -0.1536)
OKLCHoklch(69.38% 0.189 305.5)
XYZxyz(43.6638, 30.5248, 92.3803)
Luminance0.3053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B978F8 #B7F878
analogous
#7978F8 #B978F8 #F878F7
triadic
#B978F8 #F8B978 #78F8B9
tetradic
#B978F8 #F87978 #B7F878 #78F7F8
square
#B978F8 #F87978 #B7F878 #78F7F8
split-complementary
#B978F8 #F7F878 #78F879
monochromatic
#7D0CE9 #9B3EF5 #B978F8 #D7B2FB #F0E2FD

Accessibility & contrast

On white

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

On black

7.11
#B978F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B978F8
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B978F8#FFFFFF#000000##000000
##B978F81.002.967.117.11
#FFFFFF2.961.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5094FC
Deuteranopia (green-blind)
#6396F5
Tritanopia (blue-blind)
#AF8FAD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b978f8;
/* rgb */ color: rgb(185, 120, 248);
/* oklch */ color: oklch(69.4% 0.189 305.5);
Tailwind
colors: {
  custom: {
    50: '#d1a1fb',
    500: '#b978f8',
    950: '#000000',
  },
}
SCSS
$custom: #b978f8;
$custom-light: #d1a1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b978f8",
  "rgb": {
    "r": 185,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 270.469,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.69382,
    "c": 0.18866,
    "h": 305.5
  },
  "luminance": 0.30525
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B978F8

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

Preview Lab → · Contrast checker → · Palette generator →

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