#8A78BE#8A78BE

#8A78BE is a mid, moderate violet. Relative luminance 0.226; OKLCH L 61.7% C 0.105 H 295.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A78BE
RGBrgb(138, 120, 190)
HSLhsl(255, 35%, 61%)
HSVhsv(255, 37%, 75%)
CMYKcmyk(27.4%, 36.8%, 0%, 25.5%)
CIE-LABlab(54.61, 22.25, -34.25)
CIE-LCHlch(54.61, 40.84, 303.01°)
OKLaboklab(61.75% 0.0444 -0.0954)
OKLCHoklch(61.75% 0.105 295)
XYZxyz(26.4897, 22.5536, 51.6629)
Luminance0.2255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78BE #ACBE78
analogous
#7889BE #8A78BE #AD78BE
triadic
#8A78BE #BE8A78 #78BE8A
tetradic
#8A78BE #BE7889 #ACBE78 #78BEAD
square
#8A78BE #BE7889 #ACBE78 #78BEAD
split-complementary
#8A78BE #BEAD78 #89BE78
monochromatic
#4E3D7F #6751A8 #8A78BE #AEA1D2 #D2CBE6

Accessibility & contrast

On white

3.81
#8A78BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#8A78BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78BE
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78BE#FFFFFF#000000##000000
##8A78BE1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6583C1
Deuteranopia (green-blind)
#6882BC
Tritanopia (blue-blind)
#7F8492
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a78be;
/* rgb */ color: rgb(138, 120, 190);
/* oklch */ color: oklch(61.7% 0.105 295.0);
Tailwind
colors: {
  custom: {
    50: '#ad9fd2',
    500: '#8a78be',
    950: '#000000',
  },
}
SCSS
$custom: #8a78be;
$custom-light: #ad9fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78be",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 190
  },
  "hsl": {
    "h": 255.429,
    "s": 35,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61745,
    "c": 0.10519,
    "h": 295
  },
  "luminance": 0.22554
}

Semantic roles & 50–950 ramp

primary
#8A78BE
secondary
#CFD6BC
accent
#AE388F
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A78BE

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

Preview Lab → · Contrast checker → · Palette generator →

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