#8A7BB4#8A7BB4

#8A7BB4 is a mid, moderate violet. Relative luminance 0.229; OKLCH L 61.8% C 0.086 H 295.9°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A7BB4
RGBrgb(138, 123, 180)
HSLhsl(256, 28%, 59%)
HSVhsv(256, 32%, 71%)
CMYKcmyk(23.3%, 31.7%, 0%, 29.4%)
CIE-LABlab(54.93, 18.00, -28.02)
CIE-LCHlch(54.93, 33.30, 302.72°)
OKLaboklab(61.85% 0.0376 -0.0775)
OKLCHoklch(61.85% 0.086 295.9)
XYZxyz(25.8005, 22.8642, 46.2251)
Luminance0.2286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BB4 #A5B47B
analogous
#7B89B4 #8A7BB4 #A67BB4
triadic
#8A7BB4 #B48A7B #7BB48A
tetradic
#8A7BB4 #B47B89 #A5B47B #7BB4A6
square
#8A7BB4 #B47B89 #A5B47B #7BB4A6
split-complementary
#8A7BB4 #B4A67B #89B47B
monochromatic
#4F4173 #69589A #8A7BB4 #ADA2CA #CFC9E0

Accessibility & contrast

On white

3.77
#8A7BB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#8A7BB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BB4
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BB4#FFFFFF#000000##000000
##8A7BB41.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D84B6
Deuteranopia (green-blind)
#6F83B2
Tritanopia (blue-blind)
#828490
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a7bb4;
/* rgb */ color: rgb(138, 123, 180);
/* oklch */ color: oklch(61.8% 0.086 295.9);
Tailwind
colors: {
  custom: {
    50: '#ada1ca',
    500: '#8a7bb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bb4;
$custom-light: #ada1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bb4",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 180
  },
  "hsl": {
    "h": 255.789,
    "s": 27.536,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61847,
    "c": 0.0861,
    "h": 295.9
  },
  "luminance": 0.22864
}

Semantic roles & 50–950 ramp

primary
#8A7BB4
secondary
#CBD1BA
accent
#C464AB
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100F13
muted
#7F7E82

Preview Lab

Preview with #8A7BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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