#8978BF#8978BF

#8978BF is a mid, moderate violet. Relative luminance 0.225; OKLCH L 61.7% C 0.107 H 294.1°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#8978BF
RGBrgb(137, 120, 191)
HSLhsl(254, 36%, 61%)
HSVhsv(254, 37%, 75%)
CMYKcmyk(28.3%, 37.2%, 0%, 25.1%)
CIE-LABlab(54.57, 22.21, -34.90)
CIE-LCHlch(54.57, 41.36, 302.47°)
OKLaboklab(61.71% 0.0434 -0.0973)
OKLCHoklch(61.71% 0.107 294.1)
XYZxyz(26.4347, 22.5125, 52.2327)
Luminance0.2251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8978BF #AEBF78
analogous
#788ABF #8978BF #AC78BF
triadic
#8978BF #BF8978 #78BF89
tetradic
#8978BF #BF788A #AEBF78 #78BFAC
square
#8978BF #BF788A #AEBF78 #78BFAC
split-complementary
#8978BF #BFAC78 #8ABF78
monochromatic
#4D3D80 #6650A9 #8978BF #ADA2D3 #D2CBE6

Accessibility & contrast

On white

3.82
#8978BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#8978BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8978BF
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8978BF#FFFFFF#000000##000000
##8978BF1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6583C2
Deuteranopia (green-blind)
#6781BD
Tritanopia (blue-blind)
#7D8492
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8978bf;
/* rgb */ color: rgb(137, 120, 191);
/* oklch */ color: oklch(61.7% 0.107 294.1);
Tailwind
colors: {
  custom: {
    50: '#ad9fd2',
    500: '#8978bf',
    950: '#000000',
  },
}
SCSS
$custom: #8978bf;
$custom-light: #ad9fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8978bf",
  "rgb": {
    "r": 137,
    "g": 120,
    "b": 191
  },
  "hsl": {
    "h": 254.366,
    "s": 35.678,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61706,
    "c": 0.10651,
    "h": 294.1
  },
  "luminance": 0.22513
}

Semantic roles & 50–950 ramp

primary
#8978BF
secondary
#D0D7BC
accent
#AF3792
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8978BF

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

Preview Lab → · Contrast checker → · Palette generator →

#8978BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva