#8A7FB3#8A7FB3

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

Color values

HEX#8A7FB3
RGBrgb(138, 127, 179)
HSLhsl(253, 25%, 60%)
HSVhsv(253, 29%, 70%)
CMYKcmyk(22.9%, 29.1%, 0%, 29.8%)
CIE-LABlab(55.92, 15.41, -25.91)
CIE-LCHlch(55.92, 30.15, 300.74°)
OKLaboklab(62.6% 0.0314 -0.0715)
OKLCHoklch(62.6% 0.078 293.7)
XYZxyz(26.2054, 23.8364, 45.8594)
Luminance0.2384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FB3 #A8B37F
analogous
#7F8EB3 #8A7FB3 #A47FB3
triadic
#8A7FB3 #B38A7F #7FB38A
tetradic
#8A7FB3 #B37F8E #A8B37F #7FB3A4
square
#8A7FB3 #B37F8E #A8B37F #7FB3A4
split-complementary
#8A7FB3 #B3A47F #8EB37F
monochromatic
#4E4473 #685B9A #8A7FB3 #ADA5CA #D0CCE1

Accessibility & contrast

On white

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

On black

5.77
#8A7FB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FB3
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FB3#FFFFFF#000000##000000
##8A7FB31.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7287B5
Deuteranopia (green-blind)
#7485B2
Tritanopia (blue-blind)
#828791
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a7fb3;
/* rgb */ color: rgb(138, 127, 179);
/* oklch */ color: oklch(62.6% 0.078 293.7);
Tailwind
colors: {
  custom: {
    50: '#ada4ca',
    500: '#8a7fb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fb3;
$custom-light: #ada4ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fb3",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 179
  },
  "hsl": {
    "h": 252.692,
    "s": 25.49,
    "l": 60
  },
  "oklch": {
    "l": 0.62596,
    "c": 0.07807,
    "h": 293.7
  },
  "luminance": 0.23837
}

Semantic roles & 50–950 ramp

primary
#8A7FB3
secondary
#CDD1BD
accent
#C266AE
background
#FAFAFC
surface
#F4F4F8
border
#CECED1
text
#100F13
muted
#7F7F82

Preview Lab

Preview with #8A7FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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