#8A7FAC#8A7FAC

#8A7FAC is a light, moderate violet. Relative luminance 0.236; OKLCH L 62.3% C 0.068 H 295.6°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A7FAC
RGBrgb(138, 127, 172)
HSLhsl(255, 21%, 59%)
HSVhsv(255, 26%, 67%)
CMYKcmyk(19.8%, 26.2%, 0%, 32.5%)
CIE-LABlab(55.64, 13.73, -22.32)
CIE-LCHlch(55.64, 26.21, 301.60°)
OKLaboklab(62.29% 0.0293 -0.0613)
OKLCHoklch(62.29% 0.068 295.6)
XYZxyz(25.5153, 23.5604, 42.2251)
Luminance0.2356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FAC #A1AC7F
analogous
#7F8AAC #8A7FAC #A07FAC
triadic
#8A7FAC #AC8A7F #7FAC8A
tetradic
#8A7FAC #AC7F8A #A1AC7F #7FACA0
square
#8A7FAC #AC7F8A #A1AC7F #7FACA0
split-complementary
#8A7FAC #ACA07F #8AAC7F
monochromatic
#4F456B #6A5E90 #8A7FAC #ACA4C4 #CEC9DC

Accessibility & contrast

On white

3.68
#8A7FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#8A7FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FAC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FAC#FFFFFF#000000##000000
##8A7FAC1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7586AE
Deuteranopia (green-blind)
#7685AB
Tritanopia (blue-blind)
#84868F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7fac;
/* rgb */ color: rgb(138, 127, 172);
/* oklch */ color: oklch(62.3% 0.068 295.6);
Tailwind
colors: {
  custom: {
    50: '#aca4c4',
    500: '#8a7fac',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fac;
$custom-light: #aca4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fac",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 172
  },
  "hsl": {
    "h": 254.667,
    "s": 21.327,
    "l": 58.627
  },
  "oklch": {
    "l": 0.62289,
    "c": 0.06794,
    "h": 295.6
  },
  "luminance": 0.23561
}

Semantic roles & 50–950 ramp

primary
#8A7FAC
secondary
#C8CCBB
accent
#BE6AA9
background
#FAFAFC
surface
#F4F4F8
border
#CECED1
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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