#8A6EBD#8A6EBD

#8A6EBD is a mid, vivid violet. Relative luminance 0.202; OKLCH L 59.8% C 0.120 H 299.1°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A6EBD
RGBrgb(138, 110, 189)
HSLhsl(261, 37%, 59%)
HSVhsv(261, 42%, 74%)
CMYKcmyk(27%, 41.8%, 0%, 25.9%)
CIE-LABlab(52.10, 27.87, -37.62)
CIE-LCHlch(52.10, 46.82, 306.53°)
OKLaboklab(59.82% 0.0584 -0.1051)
OKLCHoklch(59.82% 0.12 299.1)
XYZxyz(25.2404, 20.2291, 50.7091)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EBD #A1BD6E
analogous
#6E79BD #8A6EBD #B16EBD
triadic
#8A6EBD #BD8A6E #6EBD8A
tetradic
#8A6EBD #BD6E79 #A1BD6E #6EBDB1
square
#8A6EBD #BD6E79 #A1BD6E #6EBDB1
split-complementary
#8A6EBD #BDB16E #79BD6E
monochromatic
#4F3779 #6A4AA3 #8A6EBD #AC98D0 #CEC2E3

Accessibility & contrast

On white

4.16
#8A6EBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8A6EBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EBD
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EBD#FFFFFF#000000##000000
##8A6EBD1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#587CC0
Deuteranopia (green-blind)
#5E7CBB
Tritanopia (blue-blind)
#807C8C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a6ebd;
/* rgb */ color: rgb(138, 110, 189);
/* oklch */ color: oklch(59.8% 0.120 299.1);
Tailwind
colors: {
  custom: {
    50: '#ae98d1',
    500: '#8a6ebd',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ebd;
$custom-light: #ae98d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ebd",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 189
  },
  "hsl": {
    "h": 261.266,
    "s": 37.441,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5982,
    "c": 0.12025,
    "h": 299.1
  },
  "luminance": 0.20229
}

Semantic roles & 50–950 ramp

primary
#8A6EBD
secondary
#C8D3B4
accent
#CD5AA5
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8A6EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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