#8A7DC0#8A7DC0

#8A7DC0 is a light, moderate violet. Relative luminance 0.239; OKLCH L 62.8% C 0.100 H 292.2°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8A7DC0
RGBrgb(138, 125, 192)
HSLhsl(252, 35%, 62%)
HSVhsv(252, 35%, 75%)
CMYKcmyk(28.1%, 34.9%, 0%, 24.7%)
CIE-LABlab(55.96, 19.82, -33.28)
CIE-LCHlch(55.96, 38.73, 300.77°)
OKLaboklab(62.81% 0.0377 -0.0926)
OKLCHoklch(62.81% 0.1 292.2)
XYZxyz(27.3269, 23.8758, 53.0277)
Luminance0.2388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DC0 #B3C07D
analogous
#7D92C0 #8A7DC0 #AC7DC0
triadic
#8A7DC0 #C08A7D #7DC08A
tetradic
#8A7DC0 #C07D92 #B3C07D #7DC0AC
square
#8A7DC0 #C07D92 #B3C07D #7DC0AC
split-complementary
#8A7DC0 #C0AC7D #92C07D
monochromatic
#4D4083 #6554AC #8A7DC0 #AFA6D4 #D4CFE8

Accessibility & contrast

On white

3.64
#8A7DC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#8A7DC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DC0
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DC0#FFFFFF#000000##000000
##8A7DC01.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7dc0;
/* rgb */ color: rgb(138, 125, 192);
/* oklch */ color: oklch(62.8% 0.100 292.2);
Tailwind
colors: {
  custom: {
    50: '#ada2d3',
    500: '#8a7dc0',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dc0;
$custom-light: #ada2d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dc0",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 192
  },
  "hsl": {
    "h": 251.642,
    "s": 34.715,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62809,
    "c": 0.09997,
    "h": 292.2
  },
  "luminance": 0.23876
}

Semantic roles & 50–950 ramp

primary
#8A7DC0
secondary
#D4D9C0
accent
#AE3897
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#100F14
muted
#7F7F82

Preview Lab

Preview with #8A7DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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