#8A7EB3#8A7EB3

#8A7EB3 is a light, moderate violet. Relative luminance 0.236; OKLCH L 62.4% C 0.080 H 294.4°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8A7EB3
RGBrgb(138, 126, 179)
HSLhsl(254, 26%, 60%)
HSVhsv(254, 30%, 70%)
CMYKcmyk(22.9%, 29.6%, 0%, 29.8%)
CIE-LABlab(55.66, 16.00, -26.31)
CIE-LCHlch(55.66, 30.79, 301.30°)
OKLaboklab(62.4% 0.0329 -0.0726)
OKLCHoklch(62.4% 0.08 294.4)
XYZxyz(26.0769, 23.5794, 45.8165)
Luminance0.2358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EB3 #A7B37E
analogous
#7E8CB3 #8A7EB3 #A57EB3
triadic
#8A7EB3 #B38A7E #7EB38A
tetradic
#8A7EB3 #B37E8C #A7B37E #7EB3A5
square
#8A7EB3 #B37E8C #A7B37E #7EB3A5
split-complementary
#8A7EB3 #B3A57E #8CB37E
monochromatic
#4E4473 #695A99 #8A7EB3 #ADA5CA #D0CBE0

Accessibility & contrast

On white

3.67
#8A7EB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#8A7EB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EB3
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EB3#FFFFFF#000000##000000
##8A7EB31.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7186B5
Deuteranopia (green-blind)
#7385B2
Tritanopia (blue-blind)
#828791
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7eb3;
/* rgb */ color: rgb(138, 126, 179);
/* oklch */ color: oklch(62.4% 0.080 294.4);
Tailwind
colors: {
  custom: {
    50: '#ada3ca',
    500: '#8a7eb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eb3;
$custom-light: #ada3ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eb3",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 179
  },
  "hsl": {
    "h": 253.585,
    "s": 25.854,
    "l": 59.804
  },
  "oklch": {
    "l": 0.62396,
    "c": 0.07971,
    "h": 294.4
  },
  "luminance": 0.2358
}

Semantic roles & 50–950 ramp

primary
#8A7EB3
secondary
#CCD1BC
accent
#C266AD
background
#FAFAFC
surface
#F4F3F8
border
#CECDD1
text
#100F13
muted
#7F7F82

Preview Lab

Preview with #8A7EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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