#8A7DC4#8A7DC4

#8A7DC4 is a light, moderate violet. Relative luminance 0.241; OKLCH L 63.0% C 0.106 H 291.5°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A7DC4
RGBrgb(138, 125, 196)
HSLhsl(251, 38%, 63%)
HSVhsv(251, 36%, 77%)
CMYKcmyk(29.6%, 36.2%, 0%, 23.1%)
CIE-LABlab(56.14, 20.84, -35.28)
CIE-LCHlch(56.14, 40.97, 300.57°)
OKLaboklab(63.01% 0.0387 -0.0983)
OKLCHoklch(63.01% 0.106 291.5)
XYZxyz(27.7761, 24.0555, 55.3936)
Luminance0.2406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DC4 #B7C47D
analogous
#7D93C4 #8A7DC4 #AD7DC4
triadic
#8A7DC4 #C48A7D #7DC48A
tetradic
#8A7DC4 #C47D93 #B7C47D #7DC4AD
square
#8A7DC4 #C47D93 #B7C47D #7DC4AD
split-complementary
#8A7DC4 #C4AD7D #93C47D
monochromatic
#4C3E89 #6453B1 #8A7DC4 #B0A7D7 #D6D1EA

Accessibility & contrast

On white

3.61
#8A7DC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8A7DC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DC4
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DC4#FFFFFF#000000##000000
##8A7DC41.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6988C7
Deuteranopia (green-blind)
#6A85C2
Tritanopia (blue-blind)
#7D8A97
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a7dc4;
/* rgb */ color: rgb(138, 125, 196);
/* oklch */ color: oklch(63.0% 0.106 291.5);
Tailwind
colors: {
  custom: {
    50: '#aea2d6',
    500: '#8a7dc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dc4;
$custom-light: #aea2d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dc4",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 196
  },
  "hsl": {
    "h": 250.986,
    "s": 37.566,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63005,
    "c": 0.10567,
    "h": 291.5
  },
  "luminance": 0.24056
}

Semantic roles & 50–950 ramp

primary
#8A7DC4
secondary
#D6DBC2
accent
#B0359A
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#100F14
muted
#7F7F83

Preview Lab

Preview with #8A7DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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