#8A6FB1#8A6FB1

#8A6FB1 is a mid, moderate violet. Relative luminance 0.199; OKLCH L 59.4% C 0.102 H 302.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A6FB1
RGBrgb(138, 111, 177)
HSLhsl(265, 30%, 56%)
HSVhsv(265, 37%, 69%)
CMYKcmyk(22%, 37.3%, 0%, 30.6%)
CIE-LABlab(51.78, 24.33, -31.19)
CIE-LCHlch(51.78, 39.56, 307.95°)
OKLaboklab(59.39% 0.0545 -0.0865)
OKLCHoklch(59.39% 0.102 302.2)
XYZxyz(24.0998, 19.9465, 44.1669)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FB1 #96B16F
analogous
#6F75B1 #8A6FB1 #AB6FB1
triadic
#8A6FB1 #B18A6F #6FB18A
tetradic
#8A6FB1 #B16F75 #96B16F #6FB1AB
square
#8A6FB1 #B16F75 #96B16F #6FB1AB
split-complementary
#8A6FB1 #B1AB6F #75B16F
monochromatic
#4E3A6B #6B5093 #8A6FB1 #AA97C7 #CBBEDC

Accessibility & contrast

On white

4.21
#8A6FB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8A6FB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FB1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FB1#FFFFFF#000000##000000
##8A6FB11.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#607BB4
Deuteranopia (green-blind)
#657BAF
Tritanopia (blue-blind)
#837A88
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6fb1;
/* rgb */ color: rgb(138, 111, 177);
/* oklch */ color: oklch(59.4% 0.102 302.2);
Tailwind
colors: {
  custom: {
    50: '#ad98c8',
    500: '#8a6fb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fb1;
$custom-light: #ad98c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fb1",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 177
  },
  "hsl": {
    "h": 264.545,
    "s": 29.73,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59394,
    "c": 0.10227,
    "h": 302.2
  },
  "luminance": 0.19946
}

Semantic roles & 50–950 ramp

primary
#8A6FB1
secondary
#C0CBB0
accent
#C6629D
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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