#8A7FA7#8A7FA7

#8A7FA7 is a light, moderate violet. Relative luminance 0.234; OKLCH L 62.1% C 0.061 H 297.2°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8A7FA7
RGBrgb(138, 127, 167)
HSLhsl(257, 19%, 58%)
HSVhsv(257, 24%, 65%)
CMYKcmyk(17.4%, 24%, 0%, 34.5%)
CIE-LABlab(55.45, 12.56, -19.74)
CIE-LCHlch(55.45, 23.39, 302.47°)
OKLaboklab(62.08% 0.0278 -0.054)
OKLCHoklch(62.08% 0.061 297.2)
XYZxyz(25.0442, 23.3719, 39.7435)
Luminance0.2337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FA7 #9CA77F
analogous
#7F88A7 #8A7FA7 #9E7FA7
triadic
#8A7FA7 #A78A7F #7FA78A
tetradic
#8A7FA7 #A77F88 #9CA77F #7FA79E
square
#8A7FA7 #A77F88 #9CA77F #7FA79E
split-complementary
#8A7FA7 #A79E7F #88A77F
monochromatic
#4F4666 #6B5F8A #8A7FA7 #ABA3C0 #CCC8D9

Accessibility & contrast

On white

3.70
#8A7FA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#8A7FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FA7
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FA7#FFFFFF#000000##000000
##8A7FA71.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7785A9
Deuteranopia (green-blind)
#7884A6
Tritanopia (blue-blind)
#85858D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7fa7;
/* rgb */ color: rgb(138, 127, 167);
/* oklch */ color: oklch(62.1% 0.061 297.2);
Tailwind
colors: {
  custom: {
    50: '#aca4c1',
    500: '#8a7fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fa7;
$custom-light: #aca4c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fa7",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 167
  },
  "hsl": {
    "h": 256.5,
    "s": 18.519,
    "l": 57.647
  },
  "oklch": {
    "l": 0.62078,
    "c": 0.0607,
    "h": 297.2
  },
  "luminance": 0.23372
}

Semantic roles & 50–950 ramp

primary
#8A7FA7
secondary
#C5C9B9
accent
#BB6DA6
background
#FAFAFB
surface
#F4F4F7
border
#CECED0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #8A7FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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