#8A6EBB#8A6EBB

#8A6EBB is a mid, moderate violet. Relative luminance 0.201; OKLCH L 59.7% C 0.118 H 299.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A6EBB
RGBrgb(138, 110, 187)
HSLhsl(262, 36%, 58%)
HSVhsv(262, 41%, 73%)
CMYKcmyk(26.2%, 41.2%, 0%, 26.7%)
CIE-LABlab(52.00, 27.37, -36.62)
CIE-LCHlch(52.00, 45.72, 306.77°)
OKLaboklab(59.72% 0.0581 -0.1022)
OKLCHoklch(59.72% 0.118 299.6)
XYZxyz(25.0248, 20.1429, 49.5736)
Luminance0.2014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EBB #9FBB6E
analogous
#6E78BB #8A6EBB #B06EBB
triadic
#8A6EBB #BB8A6E #6EBB8A
tetradic
#8A6EBB #BB6E78 #9FBB6E #6EBBB0
square
#8A6EBB #BB6E78 #9FBB6E #6EBBB0
split-complementary
#8A6EBB #BBB06E #78BB6E
monochromatic
#4F3877 #6A4BA1 #8A6EBB #AC98CF #CDC1E2

Accessibility & contrast

On white

4.18
#8A6EBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#8A6EBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EBB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EBB#FFFFFF#000000##000000
##8A6EBB1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#597CBE
Deuteranopia (green-blind)
#5F7BB9
Tritanopia (blue-blind)
#817B8B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a6ebb;
/* rgb */ color: rgb(138, 110, 187);
/* oklch */ color: oklch(59.7% 0.118 299.6);
Tailwind
colors: {
  custom: {
    50: '#ae98d0',
    500: '#8a6ebb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ebb;
$custom-light: #ae98d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ebb",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 187
  },
  "hsl": {
    "h": 261.818,
    "s": 36.15,
    "l": 58.235
  },
  "oklch": {
    "l": 0.59715,
    "c": 0.11754,
    "h": 299.6
  },
  "luminance": 0.20143
}

Semantic roles & 50–950 ramp

primary
#8A6EBB
secondary
#C7D2B3
accent
#CC5CA3
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8A6EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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