#8A7DC7#8A7DC7

#8A7DC7 is a light, moderate violet. Relative luminance 0.242; OKLCH L 63.2% C 0.110 H 291.0°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A7DC7
RGBrgb(138, 125, 199)
HSLhsl(251, 40%, 64%)
HSVhsv(251, 37%, 78%)
CMYKcmyk(30.7%, 37.2%, 0%, 22%)
CIE-LABlab(56.28, 21.62, -36.76)
CIE-LCHlch(56.28, 42.65, 300.45°)
OKLaboklab(63.16% 0.0393 -0.1026)
OKLCHoklch(63.16% 0.11 291)
XYZxyz(28.1210, 24.1935, 57.2100)
Luminance0.2419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DC7 #BAC77D
analogous
#7D95C7 #8A7DC7 #AF7DC7
triadic
#8A7DC7 #C78A7D #7DC78A
tetradic
#8A7DC7 #C77D95 #BAC77D #7DC7AF
square
#8A7DC7 #C77D95 #BAC77D #7DC7AF
split-complementary
#8A7DC7 #C7AF7D #95C77D
monochromatic
#4B3D8D #6452B5 #8A7DC7 #B0A8D9 #D7D3EC

Accessibility & contrast

On white

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

On black

5.84
#8A7DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DC7
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DC7#FFFFFF#000000##000000
##8A7DC71.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6888CA
Deuteranopia (green-blind)
#6885C5
Tritanopia (blue-blind)
#7C8A99
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a7dc7;
/* rgb */ color: rgb(138, 125, 199);
/* oklch */ color: oklch(63.2% 0.110 291.0);
Tailwind
colors: {
  custom: {
    50: '#aea2d8',
    500: '#8a7dc7',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dc7;
$custom-light: #aea2d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dc7",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 199
  },
  "hsl": {
    "h": 250.541,
    "s": 39.785,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63156,
    "c": 0.10992,
    "h": 291
  },
  "luminance": 0.24194
}

Semantic roles & 50–950 ramp

primary
#8A7DC7
secondary
#D8DDC3
accent
#B3339C
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#100F14
muted
#7F7F83

Preview Lab

Preview with #8A7DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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