#8A78C8#8A78C8

#8A78C8 is a light, moderate violet. Relative luminance 0.230; OKLCH L 62.3% C 0.119 H 293.0°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8A78C8
RGBrgb(138, 120, 200)
HSLhsl(254, 42%, 63%)
HSVhsv(254, 40%, 78%)
CMYKcmyk(31%, 40%, 0%, 21.6%)
CIE-LABlab(55.08, 24.81, -39.22)
CIE-LCHlch(55.08, 46.41, 302.32°)
OKLaboklab(62.26% 0.0465 -0.1097)
OKLCHoklch(62.26% 0.119 293)
XYZxyz(27.6204, 23.0059, 57.6178)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78C8 #B6C878
analogous
#788EC8 #8A78C8 #B278C8
triadic
#8A78C8 #C88A78 #78C88A
tetradic
#8A78C8 #C8788E #B6C878 #78C8B2
square
#8A78C8 #C8788E #B6C878 #78C8B2
split-complementary
#8A78C8 #C8B278 #8EC878
monochromatic
#4C398C #644DB6 #8A78C8 #B0A3DA #D5CFEB

Accessibility & contrast

On white

3.75
#8A78C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#8A78C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78C8
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78C8#FFFFFF#000000##000000
##8A78C81.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6085CB
Deuteranopia (green-blind)
#6282C6
Tritanopia (blue-blind)
#7C8696
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a78c8;
/* rgb */ color: rgb(138, 120, 200);
/* oklch */ color: oklch(62.3% 0.119 293.0);
Tailwind
colors: {
  custom: {
    50: '#ae9fd9',
    500: '#8a78c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a78c8;
$custom-light: #ae9fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78c8",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 200
  },
  "hsl": {
    "h": 253.5,
    "s": 42.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62255,
    "c": 0.11919,
    "h": 293
  },
  "luminance": 0.23006
}

Semantic roles & 50–950 ramp

primary
#8A78C8
secondary
#D6DCBF
accent
#B53097
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100E14
muted
#7F7E83

Preview Lab

Preview with #8A78C8

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

Preview Lab → · Contrast checker → · Palette generator →

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