#8A6EBA#8A6EBA

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

Color values

HEX#8A6EBA
RGBrgb(138, 110, 186)
HSLhsl(262, 36%, 58%)
HSVhsv(262, 41%, 73%)
CMYKcmyk(25.8%, 40.9%, 0%, 27.1%)
CIE-LABlab(51.95, 27.12, -36.12)
CIE-LCHlch(51.95, 45.17, 306.90°)
OKLaboklab(59.66% 0.0579 -0.1008)
OKLCHoklch(59.66% 0.116 299.9)
XYZxyz(24.9181, 20.1002, 49.0118)
Luminance0.2010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EBA #9EBA6E
analogous
#6E78BA #8A6EBA #B06EBA
triadic
#8A6EBA #BA8A6E #6EBA8A
tetradic
#8A6EBA #BA6E78 #9EBA6E #6EBAB0
square
#8A6EBA #BA6E78 #9EBA6E #6EBAB0
split-complementary
#8A6EBA #BAB06E #78BA6E
monochromatic
#4F3876 #6A4C9F #8A6EBA #AB97CE #CDC1E1

Accessibility & contrast

On white

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

On black

5.02
#8A6EBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EBA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EBA#FFFFFF#000000##000000
##8A6EBA1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A7CBD
Deuteranopia (green-blind)
#5F7BB8
Tritanopia (blue-blind)
#817B8B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a6eba;
/* rgb */ color: rgb(138, 110, 186);
/* oklch */ color: oklch(59.7% 0.116 299.9);
Tailwind
colors: {
  custom: {
    50: '#ae98cf',
    500: '#8a6eba',
    950: '#000000',
  },
}
SCSS
$custom: #8a6eba;
$custom-light: #ae98cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6eba",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 186
  },
  "hsl": {
    "h": 262.105,
    "s": 35.514,
    "l": 58.039
  },
  "oklch": {
    "l": 0.59663,
    "c": 0.11619,
    "h": 299.9
  },
  "luminance": 0.201
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A6EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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