#8D7FAC#8D7FAC

#8D7FAC is a light, moderate violet. Relative luminance 0.238; OKLCH L 62.6% C 0.068 H 298.7°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8D7FAC
RGBrgb(141, 127, 172)
HSLhsl(259, 21%, 59%)
HSVhsv(259, 26%, 67%)
CMYKcmyk(18%, 26.2%, 0%, 32.5%)
CIE-LABlab(55.91, 14.71, -21.90)
CIE-LCHlch(55.91, 26.38, 303.89°)
OKLaboklab(62.56% 0.0328 -0.06)
OKLCHoklch(62.56% 0.068 298.7)
XYZxyz(26.0187, 23.8199, 42.2487)
Luminance0.2382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7FAC #9EAC7F
analogous
#7F87AC #8D7FAC #A37FAC
triadic
#8D7FAC #AC8D7F #7FAC8D
tetradic
#8D7FAC #AC7F87 #9EAC7F #7FACA3
square
#8D7FAC #AC7F87 #9EAC7F #7FACA3
split-complementary
#8D7FAC #ACA37F #87AC7F
monochromatic
#51456B #6D5E90 #8D7FAC #AEA4C4 #CFC9DC

Accessibility & contrast

On white

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

On black

5.76
#8D7FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7FAC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7FAC#FFFFFF#000000##000000
##8D7FAC1.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7586AE
Deuteranopia (green-blind)
#7886AB
Tritanopia (blue-blind)
#88868F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8d7fac;
/* rgb */ color: rgb(141, 127, 172);
/* oklch */ color: oklch(62.6% 0.068 298.7);
Tailwind
colors: {
  custom: {
    50: '#afa4c4',
    500: '#8d7fac',
    950: '#000000',
  },
}
SCSS
$custom: #8d7fac;
$custom-light: #afa4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7fac",
  "rgb": {
    "r": 141,
    "g": 127,
    "b": 172
  },
  "hsl": {
    "h": 258.667,
    "s": 21.327,
    "l": 58.627
  },
  "oklch": {
    "l": 0.62555,
    "c": 0.06842,
    "h": 298.7
  },
  "luminance": 0.2382
}

Semantic roles & 50–950 ramp

primary
#8D7FAC
secondary
#C7CCBB
accent
#BE6AA4
background
#FAFAFC
surface
#F4F4F8
border
#CECED1
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8D7FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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