#B978F5#B978F5

#B978F5 is a light, vivid violet. Relative luminance 0.303; OKLCH L 69.2% C 0.185 H 306.2°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#B978F5
RGBrgb(185, 120, 245)
HSLhsl(271, 86%, 72%)
HSVhsv(271, 51%, 96%)
CMYKcmyk(24.5%, 51%, 0%, 3.9%)
CIE-LABlab(61.95, 48.46, -53.27)
CIE-LCHlch(61.95, 72.02, 312.29°)
OKLaboklab(69.21% 0.1093 -0.1495)
OKLCHoklch(69.21% 0.185 306.2)
XYZxyz(43.2021, 30.3402, 89.9488)
Luminance0.3034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B978F5 #B4F578
analogous
#7B78F5 #B978F5 #F578F3
triadic
#B978F5 #F5B978 #78F5B9
tetradic
#B978F5 #F57B78 #B4F578 #78F3F5
square
#B978F5 #F57B78 #B4F578 #78F3F5
split-complementary
#B978F5 #F3F578 #78F57B
monochromatic
#7D11E2 #9B3FF1 #B978F5 #D7B1F9 #F0E3FD

Accessibility & contrast

On white

2.97
#B978F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#B978F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B978F5
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B978F5#FFFFFF#000000##000000
##B978F51.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5293F9
Deuteranopia (green-blind)
#6696F2
Tritanopia (blue-blind)
#B08EAB
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b978f5;
/* rgb */ color: rgb(185, 120, 245);
/* oklch */ color: oklch(69.2% 0.185 306.2);
Tailwind
colors: {
  custom: {
    50: '#d1a1f9',
    500: '#b978f5',
    950: '#000000',
  },
}
SCSS
$custom: #b978f5;
$custom-light: #d1a1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b978f5",
  "rgb": {
    "r": 185,
    "g": 120,
    "b": 245
  },
  "hsl": {
    "h": 271.2,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.69214,
    "c": 0.1852,
    "h": 306.2
  },
  "luminance": 0.3034
}

Semantic roles & 50–950 ramp

primary
#B978F5
secondary
#E4F4D4
accent
#E3036E
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B978F5

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

Preview Lab → · Contrast checker → · Palette generator →

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