#8A78E2#8A78E2

#8A78E2 is a light, vivid violet. Relative luminance 0.243; OKLCH L 63.7% C 0.155 H 289.0°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8A78E2
RGBrgb(138, 120, 226)
HSLhsl(250, 65%, 68%)
HSVhsv(250, 47%, 89%)
CMYKcmyk(38.9%, 46.9%, 0%, 11.4%)
CIE-LABlab(56.41, 31.76, -51.78)
CIE-LCHlch(56.41, 60.74, 301.52°)
OKLaboklab(63.7% 0.0505 -0.1464)
OKLCHoklch(63.7% 0.155 289)
XYZxyz(30.9214, 24.3263, 75.0030)
Luminance0.2433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78E2 #D0E278
analogous
#789BE2 #8A78E2 #BF78E2
triadic
#8A78E2 #E28A78 #78E28A
tetradic
#8A78E2 #E2789B #D0E278 #78E2BF
square
#8A78E2 #E2789B #D0E278 #78E2BF
split-complementary
#8A78E2 #E2BF78 #9BE278
monochromatic
#4028B8 #5E46D7 #8A78E2 #B6AAED #E1DDF8

Accessibility & contrast

On white

3.58
#8A78E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#8A78E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78E2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78E2#FFFFFF#000000##000000
##8A78E21.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#508AE6
Deuteranopia (green-blind)
#5185E0
Tritanopia (blue-blind)
#728DA2
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a78e2;
/* rgb */ color: rgb(138, 120, 226);
/* oklch */ color: oklch(63.7% 0.155 289.0);
Tailwind
colors: {
  custom: {
    50: '#b09feb',
    500: '#8a78e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a78e2;
$custom-light: #b09feb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78e2",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 226
  },
  "hsl": {
    "h": 250.189,
    "s": 64.634,
    "l": 67.843
  },
  "oklch": {
    "l": 0.63699,
    "c": 0.15486,
    "h": 289
  },
  "luminance": 0.24327
}

Semantic roles & 50–950 ramp

primary
#8A78E2
secondary
#E6EBCB
accent
#CC19AE
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A78E2

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

Preview Lab → · Contrast checker → · Palette generator →

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