#8A6FAC#8A6FAC

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

Color values

HEX#8A6FAC
RGBrgb(138, 111, 172)
HSLhsl(267, 27%, 55%)
HSVhsv(267, 35%, 67%)
CMYKcmyk(19.8%, 35.5%, 0%, 32.5%)
CIE-LABlab(51.55, 23.13, -28.64)
CIE-LCHlch(51.55, 36.81, 308.92°)
OKLaboklab(59.15% 0.0533 -0.0792)
OKLCHoklch(59.15% 0.095 304)
XYZxyz(23.6105, 19.7508, 41.5902)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FAC #91AC6F
analogous
#6F73AC #8A6FAC #A86FAC
triadic
#8A6FAC #AC8A6F #6FAC8A
tetradic
#8A6FAC #AC6F73 #91AC6F #6FACA8
square
#8A6FAC #AC6F73 #91AC6F #6FACA8
split-complementary
#8A6FAC #ACA86F #73AC6F
monochromatic
#4E3B66 #6B518D #8A6FAC #AA96C2 #C9BDD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A6FAC#FFFFFF#000000##000000
##8A6FAC1.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)
#627AAE
Deuteranopia (green-blind)
#677BAA
Tritanopia (blue-blind)
#857886
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6fac;
/* rgb */ color: rgb(138, 111, 172);
/* oklch */ color: oklch(59.2% 0.095 304.0);
Tailwind
colors: {
  custom: {
    50: '#ad98c5',
    500: '#8a6fac',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fac;
$custom-light: #ad98c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fac",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 172
  },
  "hsl": {
    "h": 266.557,
    "s": 26.872,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59152,
    "c": 0.09549,
    "h": 304
  },
  "luminance": 0.19751
}

Semantic roles & 50–950 ramp

primary
#8A6FAC
secondary
#BDC8AF
accent
#C36599
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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