#8A6F9F#8A6F9F

#8A6F9F is a mid, moderate violet. Relative luminance 0.193; OKLCH L 58.6% C 0.078 H 309.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A6F9F
RGBrgb(138, 111, 159)
HSLhsl(274, 20%, 53%)
HSVhsv(274, 30%, 62%)
CMYKcmyk(13.2%, 30.2%, 0%, 37.6%)
CIE-LABlab(51.01, 20.12, -21.91)
CIE-LCHlch(51.01, 29.74, 312.57°)
OKLaboklab(58.56% 0.0499 -0.06)
OKLCHoklch(58.56% 0.078 309.7)
XYZxyz(22.4226, 19.2756, 35.3335)
Luminance0.1928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6F9F #849F6F
analogous
#726F9F #8A6F9F #9F6F9C
triadic
#8A6F9F #9F8A6F #6F9F8A
tetradic
#8A6F9F #9F726F #849F6F #6F9C9F
square
#8A6F9F #9F726F #849F6F #6F9C9F
split-complementary
#8A6F9F #9C9F6F #6F9F72
monochromatic
#4C3B59 #6B547D #8A6F9F #A894B7 #C6B8D0

Accessibility & contrast

On white

4.33
#8A6F9F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8A6F9F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6F9F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6F9F#FFFFFF#000000##000000
##8A6F9F1.004.334.864.86
#FFFFFF4.331.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6778A1
Deuteranopia (green-blind)
#6C7A9E
Tritanopia (blue-blind)
#887580
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a6f9f;
/* rgb */ color: rgb(138, 111, 159);
/* oklch */ color: oklch(58.6% 0.078 309.7);
Tailwind
colors: {
  custom: {
    50: '#ac98bb',
    500: '#8a6f9f',
    950: '#000000',
  },
}
SCSS
$custom: #8a6f9f;
$custom-light: #ac98bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6f9f",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 159
  },
  "hsl": {
    "h": 273.75,
    "s": 20,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58555,
    "c": 0.07802,
    "h": 309.7
  },
  "luminance": 0.19275
}

Semantic roles & 50–950 ramp

primary
#8A6F9F
secondary
#B4BFAB
accent
#BD6B8F
background
#FAF9FB
surface
#F4F2F6
border
#CECCD0
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A6F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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