#8A78B2#8A78B2

#8A78B2 is a mid, moderate violet. Relative luminance 0.221; OKLCH L 61.2% C 0.088 H 298.0°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A78B2
RGBrgb(138, 120, 178)
HSLhsl(259, 27%, 58%)
HSVhsv(259, 33%, 70%)
CMYKcmyk(22.5%, 32.6%, 0%, 30.2%)
CIE-LABlab(54.08, 19.28, -28.19)
CIE-LCHlch(54.08, 34.15, 304.36°)
OKLaboklab(61.17% 0.0415 -0.0779)
OKLCHoklch(61.17% 0.088 298)
XYZxyz(25.2318, 22.0504, 45.0377)
Luminance0.2205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78B2 #A0B278
analogous
#7883B2 #8A78B2 #A778B2
triadic
#8A78B2 #B28A78 #78B28A
tetradic
#8A78B2 #B27883 #A0B278 #78B2A7
square
#8A78B2 #B27883 #A0B278 #78B2A7
split-complementary
#8A78B2 #B2A778 #83B278
monochromatic
#4F4070 #6A5697 #8A78B2 #AC9FC8 #CEC6DE

Accessibility & contrast

On white

3.88
#8A78B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#8A78B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78B2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78B2#FFFFFF#000000##000000
##8A78B21.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A81B4
Deuteranopia (green-blind)
#6D81B0
Tritanopia (blue-blind)
#82818D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a78b2;
/* rgb */ color: rgb(138, 120, 178);
/* oklch */ color: oklch(61.2% 0.088 298.0);
Tailwind
colors: {
  custom: {
    50: '#ad9fc9',
    500: '#8a78b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a78b2;
$custom-light: #ad9fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78b2",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 178
  },
  "hsl": {
    "h": 258.621,
    "s": 27.358,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61166,
    "c": 0.08828,
    "h": 298
  },
  "luminance": 0.22051
}

Semantic roles & 50–950 ramp

primary
#8A78B2
secondary
#C7CEB7
accent
#C464A6
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A78B2

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

Preview Lab → · Contrast checker → · Palette generator →

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