#8D7ECA#8D7ECA

#8D7ECA is a light, moderate violet. Relative luminance 0.248; OKLCH L 63.8% C 0.113 H 291.9°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8D7ECA
RGBrgb(141, 126, 202)
HSLhsl(252, 42%, 64%)
HSVhsv(252, 38%, 79%)
CMYKcmyk(30.2%, 37.6%, 0%, 20.8%)
CIE-LABlab(56.93, 22.66, -37.43)
CIE-LCHlch(56.93, 43.76, 301.19°)
OKLaboklab(63.76% 0.0421 -0.1045)
OKLCHoklch(63.76% 0.113 291.9)
XYZxyz(29.1033, 24.8482, 59.1285)
Luminance0.2485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7ECA #BBCA7E
analogous
#7E95CA #8D7ECA #B37ECA
triadic
#8D7ECA #CA8D7E #7ECA8D
tetradic
#8D7ECA #CA7E95 #BBCA7E #7ECAB3
square
#8D7ECA #CA7E95 #BBCA7E #7ECAB3
split-complementary
#8D7ECA #CAB37E #95CA7E
monochromatic
#4D3C92 #6753B8 #8D7ECA #B3A9DC #DAD5EE

Accessibility & contrast

On white

3.52
#8D7ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#8D7ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7ECA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7ECA#FFFFFF#000000##000000
##8D7ECA1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#688ACD
Deuteranopia (green-blind)
#6A87C8
Tritanopia (blue-blind)
#7F8C9A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8d7eca;
/* rgb */ color: rgb(141, 126, 202);
/* oklch */ color: oklch(63.8% 0.113 291.9);
Tailwind
colors: {
  custom: {
    50: '#b0a3da',
    500: '#8d7eca',
    950: '#000000',
  },
}
SCSS
$custom: #8d7eca;
$custom-light: #b0a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7eca",
  "rgb": {
    "r": 141,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 251.842,
    "s": 41.758,
    "l": 64.314
  },
  "oklch": {
    "l": 0.63757,
    "c": 0.11269,
    "h": 291.9
  },
  "luminance": 0.24849
}

Semantic roles & 50–950 ramp

primary
#8D7ECA
secondary
#DADFC5
accent
#B5319B
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8D7ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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