#8A7BC1#8A7BC1

#8A7BC1 is a light, moderate violet. Relative luminance 0.234; OKLCH L 62.5% C 0.105 H 293.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8A7BC1
RGBrgb(138, 123, 193)
HSLhsl(253, 36%, 62%)
HSVhsv(253, 36%, 76%)
CMYKcmyk(28.5%, 36.3%, 0%, 24.3%)
CIE-LABlab(55.50, 21.25, -34.57)
CIE-LCHlch(55.50, 40.58, 301.58°)
OKLaboklab(62.47% 0.0408 -0.0963)
OKLCHoklch(62.47% 0.105 293)
XYZxyz(27.1875, 23.4190, 53.5297)
Luminance0.2342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BC1 #B2C17B
analogous
#7B8FC1 #8A7BC1 #AD7BC1
triadic
#8A7BC1 #C18A7B #7BC18A
tetradic
#8A7BC1 #C17B8F #B2C17B #7BC1AD
square
#8A7BC1 #C17B8F #B2C17B #7BC1AD
split-complementary
#8A7BC1 #C1AD7B #8FC17B
monochromatic
#4D3E84 #6551AD #8A7BC1 #AFA5D5 #D4CEE8

Accessibility & contrast

On white

3.69
#8A7BC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#8A7BC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BC1
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BC1#FFFFFF#000000##000000
##8A7BC11.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6886C4
Deuteranopia (green-blind)
#6984BF
Tritanopia (blue-blind)
#7E8795
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7bc1;
/* rgb */ color: rgb(138, 123, 193);
/* oklch */ color: oklch(62.5% 0.105 293.0);
Tailwind
colors: {
  custom: {
    50: '#aea1d4',
    500: '#8a7bc1',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bc1;
$custom-light: #aea1d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bc1",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 193
  },
  "hsl": {
    "h": 252.857,
    "s": 36.082,
    "l": 61.961
  },
  "oklch": {
    "l": 0.6247,
    "c": 0.10459,
    "h": 293
  },
  "luminance": 0.23419
}

Semantic roles & 50–950 ramp

primary
#8A7BC1
secondary
#D3D9BF
accent
#AF3795
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#100F14
muted
#7F7E83

Preview Lab

Preview with #8A7BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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