#8D7EB2#8D7EB2

#8D7EB2 is a light, moderate violet. Relative luminance 0.238; OKLCH L 62.6% C 0.079 H 297.3°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8D7EB2
RGBrgb(141, 126, 178)
HSLhsl(257, 25%, 60%)
HSVhsv(257, 29%, 70%)
CMYKcmyk(20.8%, 29.2%, 0%, 30.2%)
CIE-LABlab(55.89, 16.71, -25.38)
CIE-LCHlch(55.89, 30.38, 303.36°)
OKLaboklab(62.62% 0.0361 -0.0699)
OKLCHoklch(62.62% 0.079 297.3)
XYZxyz(26.4795, 23.7986, 45.3094)
Luminance0.2380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7EB2 #A3B27E
analogous
#7E89B2 #8D7EB2 #A77EB2
triadic
#8D7EB2 #B28D7E #7EB28D
tetradic
#8D7EB2 #B27E89 #A3B27E #7EB2A7
square
#8D7EB2 #B27E89 #A3B27E #7EB2A7
split-complementary
#8D7EB2 #B2A77E #89B27E
monochromatic
#514472 #6C5B98 #8D7EB2 #AFA4C9 #D1CBE0

Accessibility & contrast

On white

3.65
#8D7EB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#8D7EB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7EB2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7EB2#FFFFFF#000000##000000
##8D7EB21.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7286B4
Deuteranopia (green-blind)
#7485B1
Tritanopia (blue-blind)
#868690
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8d7eb2;
/* rgb */ color: rgb(141, 126, 178);
/* oklch */ color: oklch(62.6% 0.079 297.3);
Tailwind
colors: {
  custom: {
    50: '#afa3c9',
    500: '#8d7eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8d7eb2;
$custom-light: #afa3c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7eb2",
  "rgb": {
    "r": 141,
    "g": 126,
    "b": 178
  },
  "hsl": {
    "h": 257.308,
    "s": 25.243,
    "l": 59.608
  },
  "oklch": {
    "l": 0.62616,
    "c": 0.07867,
    "h": 297.3
  },
  "luminance": 0.23799
}

Semantic roles & 50–950 ramp

primary
#8D7EB2
secondary
#CAD0BC
accent
#C266A7
background
#FAFAFC
surface
#F4F3F8
border
#CECDD1
text
#100F13
muted
#7F7F82

Preview Lab

Preview with #8D7EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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