#8A7BC8#8A7BC8

#8A7BC8 is a light, moderate violet. Relative luminance 0.237; OKLCH L 62.8% C 0.114 H 291.7°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8A7BC8
RGBrgb(138, 123, 200)
HSLhsl(252, 41%, 63%)
HSVhsv(252, 39%, 78%)
CMYKcmyk(31%, 38.5%, 0%, 21.6%)
CIE-LABlab(55.83, 23.05, -38.05)
CIE-LCHlch(55.83, 44.48, 301.21°)
OKLaboklab(62.82% 0.0423 -0.1063)
OKLCHoklch(62.82% 0.114 291.7)
XYZxyz(27.9869, 23.7388, 57.7399)
Luminance0.2374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BC8 #B9C87B
analogous
#7B92C8 #8A7BC8 #B07BC8
triadic
#8A7BC8 #C88A7B #7BC88A
tetradic
#8A7BC8 #C87B92 #B9C87B #7BC8B0
square
#8A7BC8 #C87B92 #B9C87B #7BC8B0
split-complementary
#8A7BC8 #C8B07B #92C87B
monochromatic
#4B3B8E #6450B6 #8A7BC8 #B0A6DA #D7D1EC

Accessibility & contrast

On white

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

On black

5.75
#8A7BC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BC8
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BC8#FFFFFF#000000##000000
##8A7BC81.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6587CB
Deuteranopia (green-blind)
#6684C6
Tritanopia (blue-blind)
#7C8998
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a7bc8;
/* rgb */ color: rgb(138, 123, 200);
/* oklch */ color: oklch(62.8% 0.114 291.7);
Tailwind
colors: {
  custom: {
    50: '#aea1d9',
    500: '#8a7bc8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bc8;
$custom-light: #aea1d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bc8",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 200
  },
  "hsl": {
    "h": 251.688,
    "s": 41.176,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62824,
    "c": 0.11446,
    "h": 291.7
  },
  "luminance": 0.23739
}

Semantic roles & 50–950 ramp

primary
#8A7BC8
secondary
#D8DDC2
accent
#B4319B
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#100F14
muted
#7F7E83

Preview Lab

Preview with #8A7BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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