#8A7EC0#8A7EC0

#8A7EC0 is a light, moderate violet. Relative luminance 0.241; OKLCH L 63.0% C 0.098 H 291.7°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A7EC0
RGBrgb(138, 126, 192)
HSLhsl(251, 34%, 62%)
HSVhsv(251, 34%, 75%)
CMYKcmyk(28.1%, 34.4%, 0%, 24.7%)
CIE-LABlab(56.22, 19.23, -32.88)
CIE-LCHlch(56.22, 38.09, 300.32°)
OKLaboklab(63% 0.0363 -0.0914)
OKLCHoklch(63% 0.098 291.7)
XYZxyz(27.4542, 24.1303, 53.0701)
Luminance0.2413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EC0 #B4C07E
analogous
#7E93C0 #8A7EC0 #AB7EC0
triadic
#8A7EC0 #C08A7E #7EC08A
tetradic
#8A7EC0 #C07E93 #B4C07E #7EC0AB
square
#8A7EC0 #C07E93 #B4C07E #7EC0AB
split-complementary
#8A7EC0 #C0AB7E #93C07E
monochromatic
#4C4083 #6555AC #8A7EC0 #AFA7D4 #D5D0E8

Accessibility & contrast

On white

3.60
#8A7EC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8A7EC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EC0
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EC0#FFFFFF#000000##000000
##8A7EC01.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C88C3
Deuteranopia (green-blind)
#6D86BE
Tritanopia (blue-blind)
#7E8996
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a7ec0;
/* rgb */ color: rgb(138, 126, 192);
/* oklch */ color: oklch(63.0% 0.098 291.7);
Tailwind
colors: {
  custom: {
    50: '#ada3d3',
    500: '#8a7ec0',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ec0;
$custom-light: #ada3d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ec0",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 192
  },
  "hsl": {
    "h": 250.909,
    "s": 34.375,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63004,
    "c": 0.09839,
    "h": 291.7
  },
  "luminance": 0.24131
}

Semantic roles & 50–950 ramp

primary
#8A7EC0
secondary
#D5D9C1
accent
#AD3898
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#100F14
muted
#7F7F82

Preview Lab

Preview with #8A7EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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