#8A78BF#8A78BF

#8A78BF is a mid, moderate violet. Relative luminance 0.226; OKLCH L 61.8% C 0.107 H 294.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8A78BF
RGBrgb(138, 120, 191)
HSLhsl(255, 36%, 61%)
HSVhsv(255, 37%, 75%)
CMYKcmyk(27.7%, 37.2%, 0%, 25.1%)
CIE-LABlab(54.66, 22.50, -34.75)
CIE-LCHlch(54.66, 41.40, 302.92°)
OKLaboklab(61.8% 0.0446 -0.0968)
OKLCHoklch(61.8% 0.107 294.7)
XYZxyz(26.5994, 22.5975, 52.2405)
Luminance0.2260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78BF #ADBF78
analogous
#7889BF #8A78BF #AD78BF
triadic
#8A78BF #BF8A78 #78BF8A
tetradic
#8A78BF #BF7889 #ADBF78 #78BFAD
square
#8A78BF #BF7889 #ADBF78 #78BFAD
split-complementary
#8A78BF #BFAD78 #89BF78
monochromatic
#4E3D80 #6750A9 #8A78BF #AEA2D3 #D2CBE6

Accessibility & contrast

On white

3.80
#8A78BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#8A78BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78BF
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78BF#FFFFFF#000000##000000
##8A78BF1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6583C2
Deuteranopia (green-blind)
#6782BD
Tritanopia (blue-blind)
#7F8492
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a78bf;
/* rgb */ color: rgb(138, 120, 191);
/* oklch */ color: oklch(61.8% 0.107 294.7);
Tailwind
colors: {
  custom: {
    50: '#ae9fd2',
    500: '#8a78bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a78bf;
$custom-light: #ae9fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78bf",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 191
  },
  "hsl": {
    "h": 255.211,
    "s": 35.678,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61795,
    "c": 0.1066,
    "h": 294.7
  },
  "luminance": 0.22598
}

Semantic roles & 50–950 ramp

primary
#8A78BF
secondary
#D0D7BC
accent
#AF3790
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A78BF

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

Preview Lab → · Contrast checker → · Palette generator →

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