#B978EC#B978EC

#B978EC is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.7% C 0.175 H 308.3°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#B978EC
RGBrgb(185, 120, 236)
HSLhsl(274, 75%, 70%)
HSVhsv(274, 49%, 93%)
CMYKcmyk(21.6%, 49.2%, 0%, 7.5%)
CIE-LABlab(61.48, 46.43, -49.02)
CIE-LCHlch(61.48, 67.52, 313.45°)
OKLaboklab(68.72% 0.1085 -0.1371)
OKLCHoklch(68.72% 0.175 308.3)
XYZxyz(41.8614, 29.8039, 82.8881)
Luminance0.2980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B978EC #ABEC78
analogous
#7F78EC #B978EC #EC78E5
triadic
#B978EC #ECB978 #78ECB9
tetradic
#B978EC #EC7F78 #ABEC78 #78E5EC
square
#B978EC #EC7F78 #ABEC78 #78E5EC
split-complementary
#B978EC #E5EC78 #78EC7F
monochromatic
#7F1DCD #9D42E4 #B978EC #D5AEF4 #F1E3FB

Accessibility & contrast

On white

3.02
#B978EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#B978EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B978EC
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B978EC#FFFFFF#000000##000000
##B978EC1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5992F0
Deuteranopia (green-blind)
#6C95E9
Tritanopia (blue-blind)
#B28CA7
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b978ec;
/* rgb */ color: rgb(185, 120, 236);
/* oklch */ color: oklch(68.7% 0.175 308.3);
Tailwind
colors: {
  custom: {
    50: '#d0a1f2',
    500: '#b978ec',
    950: '#000000',
  },
}
SCSS
$custom: #b978ec;
$custom-light: #d0a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b978ec",
  "rgb": {
    "r": 185,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 273.621,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.68721,
    "c": 0.17484,
    "h": 308.3
  },
  "luminance": 0.29803
}

Semantic roles & 50–950 ramp

primary
#B978EC
secondary
#DEF0D0
accent
#D70E67
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F17
muted
#837F85

Preview Lab

Preview with #B978EC

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

Preview Lab → · Contrast checker → · Palette generator →

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