#8A7DC2#8A7DC2

#8A7DC2 is a light, moderate violet. Relative luminance 0.240; OKLCH L 62.9% C 0.103 H 291.8°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A7DC2
RGBrgb(138, 125, 194)
HSLhsl(251, 36%, 63%)
HSVhsv(251, 36%, 76%)
CMYKcmyk(28.9%, 35.6%, 0%, 23.9%)
CIE-LABlab(56.05, 20.33, -34.28)
CIE-LCHlch(56.05, 39.85, 300.67°)
OKLaboklab(62.91% 0.0382 -0.0955)
OKLCHoklch(62.91% 0.103 291.8)
XYZxyz(27.5500, 23.9651, 54.2027)
Luminance0.2397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DC2 #B5C27D
analogous
#7D93C2 #8A7DC2 #AC7DC2
triadic
#8A7DC2 #C28A7D #7DC28A
tetradic
#8A7DC2 #C27D93 #B5C27D #7DC2AC
square
#8A7DC2 #C27D93 #B5C27D #7DC2AC
split-complementary
#8A7DC2 #C2AC7D #93C27D
monochromatic
#4C3F86 #6553AE #8A7DC2 #AFA7D6 #D5D0E9

Accessibility & contrast

On white

3.62
#8A7DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#8A7DC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DC2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DC2#FFFFFF#000000##000000
##8A7DC21.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A87C5
Deuteranopia (green-blind)
#6B85C0
Tritanopia (blue-blind)
#7E8996
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a7dc2;
/* rgb */ color: rgb(138, 125, 194);
/* oklch */ color: oklch(62.9% 0.103 291.8);
Tailwind
colors: {
  custom: {
    50: '#aea2d4',
    500: '#8a7dc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dc2;
$custom-light: #aea2d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dc2",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 194
  },
  "hsl": {
    "h": 251.304,
    "s": 36.126,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62906,
    "c": 0.10282,
    "h": 291.8
  },
  "luminance": 0.23966
}

Semantic roles & 50–950 ramp

primary
#8A7DC2
secondary
#D5DAC1
accent
#AF3698
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#100F14
muted
#7F7F83

Preview Lab

Preview with #8A7DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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