#8A7EB4#8A7EB4

#8A7EB4 is a light, moderate violet. Relative luminance 0.236; OKLCH L 62.4% C 0.081 H 294.1°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8A7EB4
RGBrgb(138, 126, 180)
HSLhsl(253, 26%, 60%)
HSVhsv(253, 30%, 71%)
CMYKcmyk(23.3%, 30%, 0%, 29.4%)
CIE-LABlab(55.71, 16.24, -26.82)
CIE-LCHlch(55.71, 31.36, 301.20°)
OKLaboklab(62.44% 0.0332 -0.0741)
OKLCHoklch(62.44% 0.081 294.1)
XYZxyz(26.1784, 23.6200, 46.3511)
Luminance0.2362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EB4 #A8B47E
analogous
#7E8DB4 #8A7EB4 #A57EB4
triadic
#8A7EB4 #B48A7E #7EB48A
tetradic
#8A7EB4 #B47E8D #A8B47E #7EB4A5
square
#8A7EB4 #B47E8D #A8B47E #7EB4A5
split-complementary
#8A7EB4 #B4A57E #8DB47E
monochromatic
#4E4374 #685A9B #8A7EB4 #ADA5CB #D0CBE1

Accessibility & contrast

On white

3.67
#8A7EB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#8A7EB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EB4
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EB4#FFFFFF#000000##000000
##8A7EB41.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7186B6
Deuteranopia (green-blind)
#7285B3
Tritanopia (blue-blind)
#828791
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7eb4;
/* rgb */ color: rgb(138, 126, 180);
/* oklch */ color: oklch(62.4% 0.081 294.1);
Tailwind
colors: {
  custom: {
    50: '#ada3ca',
    500: '#8a7eb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eb4;
$custom-light: #ada3ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eb4",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 180
  },
  "hsl": {
    "h": 253.333,
    "s": 26.471,
    "l": 60
  },
  "oklch": {
    "l": 0.62441,
    "c": 0.08114,
    "h": 294.1
  },
  "luminance": 0.2362
}

Semantic roles & 50–950 ramp

primary
#8A7EB4
secondary
#CDD1BD
accent
#C365AE
background
#FAFAFC
surface
#F4F3F8
border
#CECDD1
text
#100F13
muted
#7F7F82

Preview Lab

Preview with #8A7EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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