#8A78BD#8A78BD

#8A78BD is a mid, moderate violet. Relative luminance 0.225; OKLCH L 61.7% C 0.104 H 295.2°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#8A78BD
RGBrgb(138, 120, 189)
HSLhsl(256, 34%, 61%)
HSVhsv(256, 37%, 74%)
CMYKcmyk(27%, 36.5%, 0%, 25.9%)
CIE-LABlab(54.56, 22.00, -33.75)
CIE-LCHlch(54.56, 40.29, 303.09°)
OKLaboklab(61.7% 0.0442 -0.0939)
OKLCHoklch(61.7% 0.104 295.2)
XYZxyz(26.3808, 22.5100, 51.0892)
Luminance0.2251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78BD #ABBD78
analogous
#7888BD #8A78BD #AC78BD
triadic
#8A78BD #BD8A78 #78BD8A
tetradic
#8A78BD #BD7888 #ABBD78 #78BDAC
square
#8A78BD #BD7888 #ABBD78 #78BDAC
split-complementary
#8A78BD #BDAC78 #88BD78
monochromatic
#4E3D7D #6851A6 #8A78BD #AEA1D1 #D1CAE5

Accessibility & contrast

On white

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

On black

5.50
#8A78BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78BD
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78BD#FFFFFF#000000##000000
##8A78BD1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6683C0
Deuteranopia (green-blind)
#6882BB
Tritanopia (blue-blind)
#7F8492
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a78bd;
/* rgb */ color: rgb(138, 120, 189);
/* oklch */ color: oklch(61.7% 0.104 295.2);
Tailwind
colors: {
  custom: {
    50: '#ad9fd1',
    500: '#8a78bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a78bd;
$custom-light: #ad9fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78bd",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 189
  },
  "hsl": {
    "h": 255.652,
    "s": 34.328,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61695,
    "c": 0.10379,
    "h": 295.2
  },
  "luminance": 0.2251
}

Semantic roles & 50–950 ramp

primary
#8A78BD
secondary
#CFD6BB
accent
#AD388F
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A78BD

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

Preview Lab → · Contrast checker → · Palette generator →

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