#8A6EB2#8A6EB2

#8A6EB2 is a mid, moderate violet. Relative luminance 0.198; OKLCH L 59.3% C 0.105 H 302.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A6EB2
RGBrgb(138, 110, 178)
HSLhsl(265, 31%, 56%)
HSVhsv(265, 38%, 70%)
CMYKcmyk(22.5%, 38.2%, 0%, 30.2%)
CIE-LABlab(51.58, 25.16, -32.09)
CIE-LCHlch(51.58, 40.77, 308.10°)
OKLaboklab(59.26% 0.0562 -0.0891)
OKLCHoklch(59.26% 0.105 302.3)
XYZxyz(24.0913, 19.7695, 44.6575)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EB2 #96B26E
analogous
#6E74B2 #8A6EB2 #AC6EB2
triadic
#8A6EB2 #B28A6E #6EB28A
tetradic
#8A6EB2 #B26E74 #96B26E #6EB2AC
square
#8A6EB2 #B26E74 #96B26E #6EB2AC
split-complementary
#8A6EB2 #B2AC6E #74B26E
monochromatic
#4E396C #6B4F94 #8A6EB2 #AA96C7 #CBBEDC

Accessibility & contrast

On white

4.24
#8A6EB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8A6EB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EB2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EB2#FFFFFF#000000##000000
##8A6EB21.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E7AB5
Deuteranopia (green-blind)
#637BB0
Tritanopia (blue-blind)
#837988
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6eb2;
/* rgb */ color: rgb(138, 110, 178);
/* oklch */ color: oklch(59.3% 0.105 302.3);
Tailwind
colors: {
  custom: {
    50: '#ad98c9',
    500: '#8a6eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6eb2;
$custom-light: #ad98c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6eb2",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 178
  },
  "hsl": {
    "h": 264.706,
    "s": 30.631,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59256,
    "c": 0.10535,
    "h": 302.3
  },
  "luminance": 0.19769
}

Semantic roles & 50–950 ramp

primary
#8A6EB2
secondary
#C0CCB0
accent
#C7619D
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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