#8A7CC2#8A7CC2

#8A7CC2 is a light, moderate violet. Relative luminance 0.237; OKLCH L 62.7% C 0.104 H 292.3°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A7CC2
RGBrgb(138, 124, 194)
HSLhsl(252, 36%, 62%)
HSVhsv(252, 36%, 76%)
CMYKcmyk(28.9%, 36.1%, 0%, 23.9%)
CIE-LABlab(55.80, 20.92, -34.67)
CIE-LCHlch(55.80, 40.49, 301.10°)
OKLaboklab(62.71% 0.0396 -0.0966)
OKLCHoklch(62.71% 0.104 292.3)
XYZxyz(27.4241, 23.7132, 54.1607)
Luminance0.2371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CC2 #B4C27C
analogous
#7C91C2 #8A7CC2 #AD7CC2
triadic
#8A7CC2 #C28A7C #7CC28A
tetradic
#8A7CC2 #C27C91 #B4C27C #7CC2AD
square
#8A7CC2 #C27C91 #B4C27C #7CC2AD
split-complementary
#8A7CC2 #C2AD7C #91C27C
monochromatic
#4C3E85 #6552AF #8A7CC2 #AFA6D5 #D5D0E9

Accessibility & contrast

On white

3.66
#8A7CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#8A7CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CC2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CC2#FFFFFF#000000##000000
##8A7CC21.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6987C5
Deuteranopia (green-blind)
#6A84C0
Tritanopia (blue-blind)
#7E8896
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a7cc2;
/* rgb */ color: rgb(138, 124, 194);
/* oklch */ color: oklch(62.7% 0.104 292.3);
Tailwind
colors: {
  custom: {
    50: '#aea2d4',
    500: '#8a7cc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cc2;
$custom-light: #aea2d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cc2",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 194
  },
  "hsl": {
    "h": 252,
    "s": 36.458,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62713,
    "c": 0.10441,
    "h": 292.3
  },
  "luminance": 0.23714
}

Semantic roles & 50–950 ramp

primary
#8A7CC2
secondary
#D5DAC0
accent
#AF3697
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#100F14
muted
#7F7E83

Preview Lab

Preview with #8A7CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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