#8A78AF#8A78AF

#8A78AF is a mid, moderate violet. Relative luminance 0.219; OKLCH L 61.0% C 0.084 H 298.9°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8A78AF
RGBrgb(138, 120, 175)
HSLhsl(260, 26%, 58%)
HSVhsv(260, 31%, 69%)
CMYKcmyk(21.1%, 31.4%, 0%, 31.4%)
CIE-LABlab(53.95, 18.55, -26.66)
CIE-LCHlch(53.95, 32.48, 304.84°)
OKLaboklab(61.03% 0.0407 -0.0736)
OKLCHoklch(61.03% 0.084 298.9)
XYZxyz(24.9339, 21.9312, 43.4687)
Luminance0.2193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78AF #9DAF78
analogous
#7882AF #8A78AF #A578AF
triadic
#8A78AF #AF8A78 #78AF8A
tetradic
#8A78AF #AF7882 #9DAF78 #78AFA5
square
#8A78AF #AF7882 #9DAF78 #78AFA5
split-complementary
#8A78AF #AFA578 #82AF78
monochromatic
#4F406C #6B5793 #8A78AF #AB9EC6 #CDC5DD

Accessibility & contrast

On white

3.90
#8A78AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#8A78AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78AF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78AF#FFFFFF#000000##000000
##8A78AF1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C81B1
Deuteranopia (green-blind)
#6E81AD
Tritanopia (blue-blind)
#83818C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a78af;
/* rgb */ color: rgb(138, 120, 175);
/* oklch */ color: oklch(61.0% 0.084 298.9);
Tailwind
colors: {
  custom: {
    50: '#ad9fc7',
    500: '#8a78af',
    950: '#000000',
  },
}
SCSS
$custom: #8a78af;
$custom-light: #ad9fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78af",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 175
  },
  "hsl": {
    "h": 259.636,
    "s": 25.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61028,
    "c": 0.08404,
    "h": 298.9
  },
  "luminance": 0.21931
}

Semantic roles & 50–950 ramp

primary
#8A78AF
secondary
#C5CCB6
accent
#C266A4
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A78AF

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

Preview Lab → · Contrast checker → · Palette generator →

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