#8A7BC4#8A7BC4

#8A7BC4 is a light, moderate violet. Relative luminance 0.236; OKLCH L 62.6% C 0.109 H 292.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A7BC4
RGBrgb(138, 123, 196)
HSLhsl(252, 38%, 63%)
HSVhsv(252, 37%, 77%)
CMYKcmyk(29.6%, 37.2%, 0%, 23.1%)
CIE-LABlab(55.64, 22.02, -36.06)
CIE-LCHlch(55.64, 42.25, 301.40°)
OKLaboklab(62.62% 0.0415 -0.1006)
OKLCHoklch(62.62% 0.109 292.4)
XYZxyz(27.5255, 23.5542, 55.3101)
Luminance0.2356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BC4 #B5C47B
analogous
#7B90C4 #8A7BC4 #AF7BC4
triadic
#8A7BC4 #C48A7B #7BC48A
tetradic
#8A7BC4 #C47B90 #B5C47B #7BC4AF
square
#8A7BC4 #C47B90 #B5C47B #7BC4AF
split-complementary
#8A7BC4 #C4AF7B #90C47B
monochromatic
#4C3D88 #6551B1 #8A7BC4 #AFA5D7 #D5D0EA

Accessibility & contrast

On white

3.68
#8A7BC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#8A7BC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BC4
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BC4#FFFFFF#000000##000000
##8A7BC41.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6686C7
Deuteranopia (green-blind)
#6884C2
Tritanopia (blue-blind)
#7D8896
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7bc4;
/* rgb */ color: rgb(138, 123, 196);
/* oklch */ color: oklch(62.6% 0.109 292.4);
Tailwind
colors: {
  custom: {
    50: '#aea1d6',
    500: '#8a7bc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bc4;
$custom-light: #aea1d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bc4",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 196
  },
  "hsl": {
    "h": 252.329,
    "s": 38.22,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6262,
    "c": 0.10883,
    "h": 292.4
  },
  "luminance": 0.23555
}

Semantic roles & 50–950 ramp

primary
#8A7BC4
secondary
#D5DBC0
accent
#B13498
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#100F14
muted
#7F7E83

Preview Lab

Preview with #8A7BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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