#8A7BB5#8A7BB5

#8A7BB5 is a mid, moderate violet. Relative luminance 0.229; OKLCH L 61.9% C 0.088 H 295.6°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A7BB5
RGBrgb(138, 123, 181)
HSLhsl(256, 28%, 60%)
HSVhsv(256, 32%, 71%)
CMYKcmyk(23.8%, 32%, 0%, 29%)
CIE-LABlab(54.97, 18.25, -28.53)
CIE-LCHlch(54.97, 33.86, 302.60°)
OKLaboklab(61.89% 0.0378 -0.0789)
OKLCHoklch(61.89% 0.088 295.6)
XYZxyz(25.9028, 22.9051, 46.7636)
Luminance0.2291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BB5 #A6B57B
analogous
#7B89B5 #8A7BB5 #A77BB5
triadic
#8A7BB5 #B58A7B #7BB58A
tetradic
#8A7BB5 #B57B89 #A6B57B #7BB5A7
square
#8A7BB5 #B57B89 #A6B57B #7BB5A7
split-complementary
#8A7BB5 #B5A77B #89B57B
monochromatic
#4E4174 #69579C #8A7BB5 #ADA2CB #D0C9E1

Accessibility & contrast

On white

3.76
#8A7BB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#8A7BB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BB5
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BB5#FFFFFF#000000##000000
##8A7BB51.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D84B7
Deuteranopia (green-blind)
#6F83B3
Tritanopia (blue-blind)
#818490
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a7bb5;
/* rgb */ color: rgb(138, 123, 181);
/* oklch */ color: oklch(61.9% 0.088 295.6);
Tailwind
colors: {
  custom: {
    50: '#ada1cb',
    500: '#8a7bb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bb5;
$custom-light: #ada1cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bb5",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 181
  },
  "hsl": {
    "h": 255.517,
    "s": 28.155,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61894,
    "c": 0.08752,
    "h": 295.6
  },
  "luminance": 0.22905
}

Semantic roles & 50–950 ramp

primary
#8A7BB5
secondary
#CBD1BB
accent
#C463AB
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100F13
muted
#7F7E82

Preview Lab

Preview with #8A7BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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