#8A7FA2#8A7FA2

#8A7FA2 is a mid, muted violet. Relative luminance 0.232; OKLCH L 61.9% C 0.053 H 299.2°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8A7FA2
RGBrgb(138, 127, 162)
HSLhsl(259, 16%, 57%)
HSVhsv(259, 22%, 64%)
CMYKcmyk(14.8%, 21.6%, 0%, 36.5%)
CIE-LABlab(55.27, 11.41, -17.14)
CIE-LCHlch(55.27, 20.59, 303.66°)
OKLaboklab(61.87% 0.0261 -0.0467)
OKLCHoklch(61.87% 0.053 299.2)
XYZxyz(24.5909, 23.1906, 37.3561)
Luminance0.2319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FA2 #97A27F
analogous
#7F86A2 #8A7FA2 #9C7FA2
triadic
#8A7FA2 #A28A7F #7FA28A
tetradic
#8A7FA2 #A27F86 #97A27F #7FA29C
square
#8A7FA2 #A27F86 #97A27F #7FA29C
split-complementary
#8A7FA2 #A29C7F #86A27F
monochromatic
#4E4660 #6B6084 #8A7FA2 #AAA2BC #CBC6D6

Accessibility & contrast

On white

3.72
#8A7FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#8A7FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FA2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FA2#FFFFFF#000000##000000
##8A7FA21.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7884A4
Deuteranopia (green-blind)
#7A84A1
Tritanopia (blue-blind)
#86848B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7fa2;
/* rgb */ color: rgb(138, 127, 162);
/* oklch */ color: oklch(61.9% 0.053 299.2);
Tailwind
colors: {
  custom: {
    50: '#aca4bd',
    500: '#8a7fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fa2;
$custom-light: #aca4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fa2",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 162
  },
  "hsl": {
    "h": 258.857,
    "s": 15.837,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61873,
    "c": 0.05349,
    "h": 299.2
  },
  "luminance": 0.23191
}

Semantic roles & 50–950 ramp

primary
#8A7FA2
secondary
#C1C6B7
accent
#B96FA2
background
#FAFAFB
surface
#F4F4F6
border
#CECED0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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