#B978EA#B978EA

#B978EA is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.6% C 0.173 H 308.9°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#B978EA
RGBrgb(185, 120, 234)
HSLhsl(274, 73%, 69%)
HSVhsv(274, 49%, 92%)
CMYKcmyk(20.9%, 48.7%, 0%, 8.2%)
CIE-LABlab(61.38, 45.99, -48.07)
CIE-LCHlch(61.38, 66.53, 313.73°)
OKLaboklab(68.61% 0.1082 -0.1344)
OKLCHoklch(68.61% 0.173 308.9)
XYZxyz(41.5725, 29.6883, 81.3663)
Luminance0.2969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B978EA #A9EA78
analogous
#8078EA #B978EA #EA78E2
triadic
#B978EA #EAB978 #78EAB9
tetradic
#B978EA #EA8078 #A9EA78 #78E2EA
square
#B978EA #EA8078 #A9EA78 #78E2EA
split-complementary
#B978EA #E2EA78 #78EA80
monochromatic
#801FC8 #9E43E2 #B978EA #D4ADF2 #F0E2FA

Accessibility & contrast

On white

3.03
#B978EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#B978EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B978EA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B978EA#FFFFFF#000000##000000
##B978EA1.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A91EE
Deuteranopia (green-blind)
#6D95E7
Tritanopia (blue-blind)
#B28BA6
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b978ea;
/* rgb */ color: rgb(185, 120, 234);
/* oklch */ color: oklch(68.6% 0.173 308.9);
Tailwind
colors: {
  custom: {
    50: '#d0a1f1',
    500: '#b978ea',
    950: '#000000',
  },
}
SCSS
$custom: #b978ea;
$custom-light: #d0a1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b978ea",
  "rgb": {
    "r": 185,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 274.211,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68614,
    "c": 0.17254,
    "h": 308.9
  },
  "luminance": 0.29688
}

Semantic roles & 50–950 ramp

primary
#B978EA
secondary
#DDEFCE
accent
#D51065
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F17
muted
#837F85

Preview Lab

Preview with #B978EA

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

Preview Lab → · Contrast checker → · Palette generator →

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