#8A7DC6#8A7DC6

#8A7DC6 is a light, moderate violet. Relative luminance 0.241; OKLCH L 63.1% C 0.109 H 291.1°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A7DC6
RGBrgb(138, 125, 198)
HSLhsl(251, 39%, 63%)
HSVhsv(251, 37%, 78%)
CMYKcmyk(30.3%, 36.9%, 0%, 22.4%)
CIE-LABlab(56.23, 21.36, -36.27)
CIE-LCHlch(56.23, 42.09, 300.49°)
OKLaboklab(63.11% 0.0391 -0.1012)
OKLCHoklch(63.11% 0.109 291.1)
XYZxyz(28.0053, 24.1472, 56.6005)
Luminance0.2415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DC6 #B9C67D
analogous
#7D94C6 #8A7DC6 #AE7DC6
triadic
#8A7DC6 #C68A7D #7DC68A
tetradic
#8A7DC6 #C67D94 #B9C67D #7DC6AE
square
#8A7DC6 #C67D94 #B9C67D #7DC6AE
split-complementary
#8A7DC6 #C6AE7D #94C67D
monochromatic
#4B3D8B #6452B3 #8A7DC6 #B0A8D9 #D7D2EB

Accessibility & contrast

On white

3.60
#8A7DC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8A7DC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DC6
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DC6#FFFFFF#000000##000000
##8A7DC61.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6888C9
Deuteranopia (green-blind)
#6985C4
Tritanopia (blue-blind)
#7C8A98
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a7dc6;
/* rgb */ color: rgb(138, 125, 198);
/* oklch */ color: oklch(63.1% 0.109 291.1);
Tailwind
colors: {
  custom: {
    50: '#aea2d7',
    500: '#8a7dc6',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dc6;
$custom-light: #aea2d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dc6",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 198
  },
  "hsl": {
    "h": 250.685,
    "s": 39.037,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63105,
    "c": 0.10851,
    "h": 291.1
  },
  "luminance": 0.24148
}

Semantic roles & 50–950 ramp

primary
#8A7DC6
secondary
#D8DCC2
accent
#B2339B
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#100F14
muted
#7F7F83

Preview Lab

Preview with #8A7DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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