#8A6FBC#8A6FBC

#8A6FBC is a mid, moderate violet. Relative luminance 0.204; OKLCH L 60.0% C 0.117 H 299.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A6FBC
RGBrgb(138, 111, 188)
HSLhsl(261, 36%, 59%)
HSVhsv(261, 41%, 74%)
CMYKcmyk(26.6%, 41%, 0%, 26.3%)
CIE-LABlab(52.29, 27.03, -36.74)
CIE-LCHlch(52.29, 45.61, 306.34°)
OKLaboklab(59.95% 0.0568 -0.1025)
OKLCHoklch(59.95% 0.117 299)
XYZxyz(25.2407, 20.4028, 50.1756)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FBC #A1BC6F
analogous
#6F7ABC #8A6FBC #B06FBC
triadic
#8A6FBC #BC8A6F #6FBC8A
tetradic
#8A6FBC #BC6F7A #A1BC6F #6FBCB0
square
#8A6FBC #BC6F7A #A1BC6F #6FBCB0
split-complementary
#8A6FBC #BCB06F #7ABC6F
monochromatic
#4F3879 #6A4CA2 #8A6FBC #AC99CF #CEC3E3

Accessibility & contrast

On white

4.13
#8A6FBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#8A6FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FBC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FBC#FFFFFF#000000##000000
##8A6FBC1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A7DBF
Deuteranopia (green-blind)
#5F7CBA
Tritanopia (blue-blind)
#807C8C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6fbc;
/* rgb */ color: rgb(138, 111, 188);
/* oklch */ color: oklch(60.0% 0.117 299.0);
Tailwind
colors: {
  custom: {
    50: '#ae98d0',
    500: '#8a6fbc',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fbc;
$custom-light: #ae98d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fbc",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 188
  },
  "hsl": {
    "h": 261.039,
    "s": 36.493,
    "l": 58.627
  },
  "oklch": {
    "l": 0.59951,
    "c": 0.11724,
    "h": 299
  },
  "luminance": 0.20403
}

Semantic roles & 50–950 ramp

primary
#8A6FBC
secondary
#C8D3B4
accent
#CC5BA5
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8A6FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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