#B978EB#B978EB

#B978EB is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.7% C 0.174 H 308.6°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#B978EB
RGBrgb(185, 120, 235)
HSLhsl(274, 74%, 70%)
HSVhsv(274, 49%, 92%)
CMYKcmyk(21.3%, 48.9%, 0%, 7.8%)
CIE-LABlab(61.43, 46.21, -48.55)
CIE-LCHlch(61.43, 67.02, 313.59°)
OKLaboklab(68.67% 0.1083 -0.1357)
OKLCHoklch(68.67% 0.174 308.6)
XYZxyz(41.7165, 29.7459, 82.1251)
Luminance0.2974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B978EB #AAEB78
analogous
#8078EB #B978EB #EB78E4
triadic
#B978EB #EBB978 #78EBB9
tetradic
#B978EB #EB8078 #AAEB78 #78E4EB
square
#B978EB #EB8078 #AAEB78 #78E4EB
split-complementary
#B978EB #E4EB78 #78EB80
monochromatic
#801ECB #9D43E3 #B978EB #D5ADF3 #F0E3FB

Accessibility & contrast

On white

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

On black

6.95
#B978EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B978EB
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B978EB#FFFFFF#000000##000000
##B978EB1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A92EF
Deuteranopia (green-blind)
#6C95E8
Tritanopia (blue-blind)
#B28BA7
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #b978eb;
/* rgb */ color: rgb(185, 120, 235);
/* oklch */ color: oklch(68.7% 0.174 308.6);
Tailwind
colors: {
  custom: {
    50: '#d0a1f2',
    500: '#b978eb',
    950: '#000000',
  },
}
SCSS
$custom: #b978eb;
$custom-light: #d0a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b978eb",
  "rgb": {
    "r": 185,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 273.913,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.68667,
    "c": 0.17368,
    "h": 308.6
  },
  "luminance": 0.29745
}

Semantic roles & 50–950 ramp

primary
#B978EB
secondary
#DDF0CF
accent
#D60F66
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#140F17
muted
#837F85

Preview Lab

Preview with #B978EB

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

Preview Lab → · Contrast checker → · Palette generator →

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