#8A78BB#8A78BB

#8A78BB is a mid, moderate violet. Relative luminance 0.224; OKLCH L 61.6% C 0.101 H 295.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A78BB
RGBrgb(138, 120, 187)
HSLhsl(256, 33%, 60%)
HSVhsv(256, 36%, 73%)
CMYKcmyk(26.2%, 35.8%, 0%, 26.7%)
CIE-LABlab(54.47, 21.49, -32.75)
CIE-LCHlch(54.47, 39.17, 303.28°)
OKLaboklab(61.6% 0.0437 -0.091)
OKLCHoklch(61.6% 0.101 295.6)
XYZxyz(26.1652, 22.4238, 49.9538)
Luminance0.2242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78BB #A9BB78
analogous
#7888BB #8A78BB #AB78BB
triadic
#8A78BB #BB8A78 #78BB8A
tetradic
#8A78BB #BB7888 #A9BB78 #78BBAB
square
#8A78BB #BB7888 #A9BB78 #78BBAB
split-complementary
#8A78BB #BBAB78 #88BB78
monochromatic
#4E3E7B #6852A3 #8A78BB #ADA1D0 #D1C9E4

Accessibility & contrast

On white

3.83
#8A78BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#8A78BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78BB
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78BB#FFFFFF#000000##000000
##8A78BB1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6783BE
Deuteranopia (green-blind)
#6981B9
Tritanopia (blue-blind)
#808391
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a78bb;
/* rgb */ color: rgb(138, 120, 187);
/* oklch */ color: oklch(61.6% 0.101 295.6);
Tailwind
colors: {
  custom: {
    50: '#ad9fcf',
    500: '#8a78bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a78bb;
$custom-light: #ad9fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78bb",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 187
  },
  "hsl": {
    "h": 256.119,
    "s": 33.005,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61597,
    "c": 0.10097,
    "h": 295.6
  },
  "luminance": 0.22424
}

Semantic roles & 50–950 ramp

primary
#8A78BB
secondary
#CDD4BB
accent
#AC3A8D
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A78BB

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

Preview Lab → · Contrast checker → · Palette generator →

#8A78BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva