#8A7EB2#8A7EB2

#8A7EB2 is a light, moderate violet. Relative luminance 0.235; OKLCH L 62.4% C 0.078 H 294.6°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A7EB2
RGBrgb(138, 126, 178)
HSLhsl(254, 25%, 60%)
HSVhsv(254, 29%, 70%)
CMYKcmyk(22.5%, 29.2%, 0%, 30.2%)
CIE-LABlab(55.62, 15.75, -25.80)
CIE-LCHlch(55.62, 30.23, 301.41°)
OKLaboklab(62.35% 0.0326 -0.0711)
OKLCHoklch(62.35% 0.078 294.6)
XYZxyz(25.9761, 23.5391, 45.2858)
Luminance0.2354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EB2 #A6B27E
analogous
#7E8CB2 #8A7EB2 #A47EB2
triadic
#8A7EB2 #B28A7E #7EB28A
tetradic
#8A7EB2 #B27E8C #A6B27E #7EB2A4
square
#8A7EB2 #B27E8C #A6B27E #7EB2A4
split-complementary
#8A7EB2 #B2A47E #8CB27E
monochromatic
#4E4472 #695B98 #8A7EB2 #ADA4C9 #D0CBE0

Accessibility & contrast

On white

3.68
#8A7EB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#8A7EB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EB2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EB2#FFFFFF#000000##000000
##8A7EB21.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7286B4
Deuteranopia (green-blind)
#7384B1
Tritanopia (blue-blind)
#828690
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7eb2;
/* rgb */ color: rgb(138, 126, 178);
/* oklch */ color: oklch(62.4% 0.078 294.6);
Tailwind
colors: {
  custom: {
    50: '#ada3c9',
    500: '#8a7eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eb2;
$custom-light: #ada3c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eb2",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 178
  },
  "hsl": {
    "h": 253.846,
    "s": 25.243,
    "l": 59.608
  },
  "oklch": {
    "l": 0.62351,
    "c": 0.07826,
    "h": 294.6
  },
  "luminance": 0.23539
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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