#8A7EBA#8A7EBA

#8A7EBA is a light, moderate violet. Relative luminance 0.239; OKLCH L 62.7% C 0.090 H 292.8°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A7EBA
RGBrgb(138, 126, 186)
HSLhsl(252, 30%, 61%)
HSVhsv(252, 32%, 73%)
CMYKcmyk(25.8%, 32.3%, 0%, 27.1%)
CIE-LABlab(55.96, 17.72, -29.86)
CIE-LCHlch(55.96, 34.73, 300.68°)
OKLaboklab(62.72% 0.0348 -0.0828)
OKLCHoklch(62.72% 0.09 292.8)
XYZxyz(26.8029, 23.8698, 49.6401)
Luminance0.2387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EBA #AEBA7E
analogous
#7E90BA #8A7EBA #A87EBA
triadic
#8A7EBA #BA8A7E #7EBA8A
tetradic
#8A7EBA #BA7E90 #AEBA7E #7EBAA8
square
#8A7EBA #BA7E90 #AEBA7E #7EBAA8
split-complementary
#8A7EBA #BAA87E #90BA7E
monochromatic
#4E427C #6757A3 #8A7EBA #AEA6CF #D2CEE5

Accessibility & contrast

On white

3.64
#8A7EBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#8A7EBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EBA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EBA#FFFFFF#000000##000000
##8A7EBA1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F87BC
Deuteranopia (green-blind)
#7085B8
Tritanopia (blue-blind)
#808894
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a7eba;
/* rgb */ color: rgb(138, 126, 186);
/* oklch */ color: oklch(62.7% 0.090 292.8);
Tailwind
colors: {
  custom: {
    50: '#ada3cf',
    500: '#8a7eba',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eba;
$custom-light: #ada3cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eba",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 186
  },
  "hsl": {
    "h": 252,
    "s": 30.303,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62718,
    "c": 0.08978,
    "h": 292.8
  },
  "luminance": 0.2387
}

Semantic roles & 50–950 ramp

primary
#8A7EBA
secondary
#D1D5BF
accent
#A93D93
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#100F13
muted
#7F7F82

Preview Lab

Preview with #8A7EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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