#8A78BC#8A78BC

#8A78BC is a mid, moderate violet. Relative luminance 0.225; OKLCH L 61.6% C 0.102 H 295.4°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8A78BC
RGBrgb(138, 120, 188)
HSLhsl(256, 34%, 60%)
HSVhsv(256, 36%, 74%)
CMYKcmyk(26.6%, 36.2%, 0%, 26.3%)
CIE-LABlab(54.52, 21.74, -33.25)
CIE-LCHlch(54.52, 39.73, 303.19°)
OKLaboklab(61.65% 0.0439 -0.0925)
OKLCHoklch(61.65% 0.102 295.4)
XYZxyz(26.2726, 22.4668, 50.5196)
Luminance0.2247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78BC #AABC78
analogous
#7888BC #8A78BC #AC78BC
triadic
#8A78BC #BC8A78 #78BC8A
tetradic
#8A78BC #BC7888 #AABC78 #78BCAC
square
#8A78BC #BC7888 #AABC78 #78BCAC
split-complementary
#8A78BC #BCAC78 #88BC78
monochromatic
#4E3E7C #6852A5 #8A78BC #ADA1D0 #D1CAE5

Accessibility & contrast

On white

3.82
#8A78BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#8A78BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78BC
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78BC#FFFFFF#000000##000000
##8A78BC1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6683BF
Deuteranopia (green-blind)
#6981BA
Tritanopia (blue-blind)
#808491
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a78bc;
/* rgb */ color: rgb(138, 120, 188);
/* oklch */ color: oklch(61.6% 0.102 295.4);
Tailwind
colors: {
  custom: {
    50: '#ad9fd0',
    500: '#8a78bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a78bc;
$custom-light: #ad9fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78bc",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 188
  },
  "hsl": {
    "h": 255.882,
    "s": 33.663,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61646,
    "c": 0.10238,
    "h": 295.4
  },
  "luminance": 0.22467
}

Semantic roles & 50–950 ramp

primary
#8A78BC
secondary
#CED5BB
accent
#AC398E
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A78BC

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

Preview Lab → · Contrast checker → · Palette generator →

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