#8A6FA8#8A6FA8

#8A6FA8 is a mid, moderate violet. Relative luminance 0.196; OKLCH L 59.0% C 0.090 H 305.5°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8A6FA8
RGBrgb(138, 111, 168)
HSLhsl(268, 25%, 55%)
HSVhsv(268, 34%, 66%)
CMYKcmyk(17.9%, 33.9%, 0%, 34.1%)
CIE-LABlab(51.38, 22.19, -26.58)
CIE-LCHlch(51.38, 34.63, 309.85°)
OKLaboklab(58.96% 0.0523 -0.0733)
OKLCHoklch(58.96% 0.09 305.5)
XYZxyz(23.2322, 19.5994, 39.5974)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FA8 #8DA86F
analogous
#6F71A8 #8A6FA8 #A66FA8
triadic
#8A6FA8 #A88A6F #6FA88A
tetradic
#8A6FA8 #A86F71 #8DA86F #6FA8A6
square
#8A6FA8 #A86F71 #8DA86F #6FA8A6
split-complementary
#8A6FA8 #A8A66F #71A86F
monochromatic
#4D3B62 #6B5288 #8A6FA8 #A995BF #C8BBD6

Accessibility & contrast

On white

4.27
#8A6FA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#8A6FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FA8
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FA8#FFFFFF#000000##000000
##8A6FA81.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#637AAA
Deuteranopia (green-blind)
#697BA6
Tritanopia (blue-blind)
#867784
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6fa8;
/* rgb */ color: rgb(138, 111, 168);
/* oklch */ color: oklch(59.0% 0.090 305.5);
Tailwind
colors: {
  custom: {
    50: '#ad98c2',
    500: '#8a6fa8',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fa8;
$custom-light: #ad98c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fa8",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 168
  },
  "hsl": {
    "h": 268.421,
    "s": 24.675,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58963,
    "c": 0.09007,
    "h": 305.5
  },
  "luminance": 0.19599
}

Semantic roles & 50–950 ramp

primary
#8A6FA8
secondary
#BAC5AD
accent
#C16796
background
#FAF9FB
surface
#F4F2F7
border
#CECCD0
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A6FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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