#8A7EC2#8A7EC2

#8A7EC2 is a light, moderate violet. Relative luminance 0.242; OKLCH L 63.1% C 0.101 H 291.3°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A7EC2
RGBrgb(138, 126, 194)
HSLhsl(251, 36%, 63%)
HSVhsv(251, 35%, 76%)
CMYKcmyk(28.9%, 35.1%, 0%, 23.9%)
CIE-LABlab(56.31, 19.74, -33.88)
CIE-LCHlch(56.31, 39.21, 300.23°)
OKLaboklab(63.1% 0.0368 -0.0943)
OKLCHoklch(63.1% 0.101 291.3)
XYZxyz(27.6773, 24.2195, 54.2451)
Luminance0.2422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EC2 #B6C27E
analogous
#7E94C2 #8A7EC2 #AC7EC2
triadic
#8A7EC2 #C28A7E #7EC28A
tetradic
#8A7EC2 #C27E94 #B6C27E #7EC2AC
square
#8A7EC2 #C27E94 #B6C27E #7EC2AC
split-complementary
#8A7EC2 #C2AC7E #94C27E
monochromatic
#4C3F86 #6454AE #8A7EC2 #B0A8D6 #D5D1E9

Accessibility & contrast

On white

3.59
#8A7EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#8A7EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EC2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EC2#FFFFFF#000000##000000
##8A7EC21.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B88C5
Deuteranopia (green-blind)
#6C86C0
Tritanopia (blue-blind)
#7D8A97
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a7ec2;
/* rgb */ color: rgb(138, 126, 194);
/* oklch */ color: oklch(63.1% 0.101 291.3);
Tailwind
colors: {
  custom: {
    50: '#ada3d4',
    500: '#8a7ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ec2;
$custom-light: #ada3d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ec2",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 250.588,
    "s": 35.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63101,
    "c": 0.10124,
    "h": 291.3
  },
  "luminance": 0.2422
}

Semantic roles & 50–950 ramp

primary
#8A7EC2
secondary
#D6DAC2
accent
#AF379A
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#100F14
muted
#7F7F83

Preview Lab

Preview with #8A7EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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