#8A7BC9#8A7BC9

#8A7BC9 is a light, moderate violet. Relative luminance 0.238; OKLCH L 62.9% C 0.116 H 291.5°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A7BC9
RGBrgb(138, 123, 201)
HSLhsl(252, 42%, 64%)
HSVhsv(252, 39%, 79%)
CMYKcmyk(31.3%, 38.8%, 0%, 21.2%)
CIE-LABlab(55.87, 23.31, -38.54)
CIE-LCHlch(55.87, 45.04, 301.17°)
OKLaboklab(62.88% 0.0425 -0.1078)
OKLCHoklch(62.88% 0.116 291.5)
XYZxyz(28.1041, 23.7857, 58.3574)
Luminance0.2379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BC9 #BAC97B
analogous
#7B93C9 #8A7BC9 #B17BC9
triadic
#8A7BC9 #C98A7B #7BC98A
tetradic
#8A7BC9 #C97B93 #BAC97B #7BC9B1
square
#8A7BC9 #C97B93 #BAC97B #7BC9B1
split-complementary
#8A7BC9 #C9B17B #93C97B
monochromatic
#4B3B8F #6450B7 #8A7BC9 #B0A6DB #D7D2ED

Accessibility & contrast

On white

3.65
#8A7BC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#8A7BC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BC9
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BC9#FFFFFF#000000##000000
##8A7BC91.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6487CC
Deuteranopia (green-blind)
#6584C7
Tritanopia (blue-blind)
#7B8998
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a7bc9;
/* rgb */ color: rgb(138, 123, 201);
/* oklch */ color: oklch(62.9% 0.116 291.5);
Tailwind
colors: {
  custom: {
    50: '#aea1da',
    500: '#8a7bc9',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bc9;
$custom-light: #aea1da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bc9",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 201
  },
  "hsl": {
    "h": 251.538,
    "s": 41.935,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62875,
    "c": 0.11587,
    "h": 291.5
  },
  "luminance": 0.23786
}

Semantic roles & 50–950 ramp

primary
#8A7BC9
secondary
#D8DEC2
accent
#B5309C
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100F15
muted
#7F7E83

Preview Lab

Preview with #8A7BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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