#8A7CAA#8A7CAA

#8A7CAA is a mid, moderate violet. Relative luminance 0.227; OKLCH L 61.6% C 0.070 H 298.3°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8A7CAA
RGBrgb(138, 124, 170)
HSLhsl(258, 21%, 58%)
HSVhsv(258, 27%, 67%)
CMYKcmyk(18.8%, 27.1%, 0%, 33.3%)
CIE-LABlab(54.78, 15.01, -22.49)
CIE-LCHlch(54.78, 27.04, 303.72°)
OKLaboklab(61.6% 0.0332 -0.0617)
OKLCHoklch(61.6% 0.07 298.3)
XYZxyz(24.9430, 22.7207, 41.0939)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CAA #9CAA7C
analogous
#7C85AA #8A7CAA #A17CAA
triadic
#8A7CAA #AA8A7C #7CAA8A
tetradic
#8A7CAA #AA7C85 #9CAA7C #7CAAA1
square
#8A7CAA #AA7C85 #9CAA7C #7CAAA1
split-complementary
#8A7CAA #AAA17C #85AA7C
monochromatic
#4F4468 #6B5C8D #8A7CAA #ABA1C2 #CCC6DA

Accessibility & contrast

On white

3.79
#8A7CAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#8A7CAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CAA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CAA#FFFFFF#000000##000000
##8A7CAA1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7283AC
Deuteranopia (green-blind)
#7483A9
Tritanopia (blue-blind)
#84838C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a7caa;
/* rgb */ color: rgb(138, 124, 170);
/* oklch */ color: oklch(61.6% 0.070 298.3);
Tailwind
colors: {
  custom: {
    50: '#aca2c3',
    500: '#8a7caa',
    950: '#000000',
  },
}
SCSS
$custom: #8a7caa;
$custom-light: #aca2c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7caa",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 170
  },
  "hsl": {
    "h": 258.261,
    "s": 21.296,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61599,
    "c": 0.07011,
    "h": 298.3
  },
  "luminance": 0.22721
}

Semantic roles & 50–950 ramp

primary
#8A7CAA
secondary
#C5CAB8
accent
#BE6AA4
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100F12
muted
#7F7E81

Preview Lab

Preview with #8A7CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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