#8A78CA#8A78CA

#8A78CA is a light, vivid violet. Relative luminance 0.231; OKLCH L 62.4% C 0.122 H 292.6°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A78CA
RGBrgb(138, 120, 202)
HSLhsl(253, 44%, 63%)
HSVhsv(253, 41%, 79%)
CMYKcmyk(31.7%, 40.6%, 0%, 20.8%)
CIE-LABlab(55.18, 25.33, -40.20)
CIE-LCHlch(55.18, 47.52, 302.21°)
OKLaboklab(62.36% 0.0469 -0.1126)
OKLCHoklch(62.36% 0.122 292.6)
XYZxyz(27.8557, 23.1000, 58.8568)
Luminance0.2310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78CA #B8CA78
analogous
#788FCA #8A78CA #B378CA
triadic
#8A78CA #CA8A78 #78CA8A
tetradic
#8A78CA #CA788F #B8CA78 #78CAB3
square
#8A78CA #CA788F #B8CA78 #78CAB3
split-complementary
#8A78CA #CAB378 #8FCA78
monochromatic
#4B388F #644CB9 #8A78CA #B0A4DB #D6D0ED

Accessibility & contrast

On white

3.74
#8A78CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#8A78CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78CA
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78CA#FFFFFF#000000##000000
##8A78CA1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F85CD
Deuteranopia (green-blind)
#6183C8
Tritanopia (blue-blind)
#7B8797
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a78ca;
/* rgb */ color: rgb(138, 120, 202);
/* oklch */ color: oklch(62.4% 0.122 292.6);
Tailwind
colors: {
  custom: {
    50: '#ae9fda',
    500: '#8a78ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a78ca;
$custom-light: #ae9fda;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78ca",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 202
  },
  "hsl": {
    "h": 253.171,
    "s": 43.617,
    "l": 63.137
  },
  "oklch": {
    "l": 0.6236,
    "c": 0.12197,
    "h": 292.6
  },
  "luminance": 0.231
}

Semantic roles & 50–950 ramp

primary
#8A78CA
secondary
#D7DEC0
accent
#B72F99
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#100E15
muted
#7F7E83

Preview Lab

Preview with #8A78CA

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

Preview Lab → · Contrast checker → · Palette generator →

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