#8A78AA#8A78AA

#8A78AA is a mid, moderate violet. Relative luminance 0.217; OKLCH L 60.8% C 0.077 H 300.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8A78AA
RGBrgb(138, 120, 170)
HSLhsl(262, 23%, 57%)
HSVhsv(262, 29%, 67%)
CMYKcmyk(18.8%, 29.4%, 0%, 33.3%)
CIE-LABlab(53.75, 17.36, -24.09)
CIE-LCHlch(53.75, 29.69, 305.78°)
OKLaboklab(60.8% 0.0393 -0.0662)
OKLCHoklch(60.8% 0.077 300.6)
XYZxyz(24.4519, 21.7384, 40.9302)
Luminance0.2174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78AA #98AA78
analogous
#787FAA #8A78AA #A378AA
triadic
#8A78AA #AA8A78 #78AA8A
tetradic
#8A78AA #AA787F #98AA78 #78AAA3
square
#8A78AA #AA787F #98AA78 #78AAA3
split-complementary
#8A78AA #AAA378 #7FAA78
monochromatic
#4E4167 #6B588C #8A78AA #AB9EC2 #CBC3D9

Accessibility & contrast

On white

3.93
#8A78AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8A78AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78AA
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78AA#FFFFFF#000000##000000
##8A78AA1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D80AC
Deuteranopia (green-blind)
#7080A9
Tritanopia (blue-blind)
#85808A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a78aa;
/* rgb */ color: rgb(138, 120, 170);
/* oklch */ color: oklch(60.8% 0.077 300.6);
Tailwind
colors: {
  custom: {
    50: '#ad9fc3',
    500: '#8a78aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a78aa;
$custom-light: #ad9fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78aa",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 170
  },
  "hsl": {
    "h": 261.6,
    "s": 22.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60802,
    "c": 0.077,
    "h": 300.6
  },
  "luminance": 0.21738
}

Semantic roles & 50–950 ramp

primary
#8A78AA
secondary
#C2C9B5
accent
#BF69A0
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E12
muted
#7F7E81

Preview Lab

Preview with #8A78AA

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

Preview Lab → · Contrast checker → · Palette generator →

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