#8A6FBB#8A6FBB

#8A6FBB is a mid, moderate violet. Relative luminance 0.204; OKLCH L 59.9% C 0.116 H 299.3°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A6FBB
RGBrgb(138, 111, 187)
HSLhsl(261, 36%, 58%)
HSVhsv(261, 41%, 73%)
CMYKcmyk(26.2%, 40.6%, 0%, 26.7%)
CIE-LABlab(52.24, 26.78, -36.24)
CIE-LCHlch(52.24, 45.06, 306.47°)
OKLaboklab(59.9% 0.0566 -0.1011)
OKLCHoklch(59.9% 0.116 299.3)
XYZxyz(25.1333, 20.3599, 49.6098)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FBB #A0BB6F
analogous
#6F7ABB #8A6FBB #B06FBB
triadic
#8A6FBB #BB8A6F #6FBB8A
tetradic
#8A6FBB #BB6F7A #A0BB6F #6FBBB0
square
#8A6FBB #BB6F7A #A0BB6F #6FBBB0
split-complementary
#8A6FBB #BBB06F #7ABB6F
monochromatic
#4F3877 #6A4CA1 #8A6FBB #AC99CF #CEC2E2

Accessibility & contrast

On white

4.14
#8A6FBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#8A6FBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FBB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FBB#FFFFFF#000000##000000
##8A6FBB1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B7DBE
Deuteranopia (green-blind)
#607CB9
Tritanopia (blue-blind)
#817C8C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6fbb;
/* rgb */ color: rgb(138, 111, 187);
/* oklch */ color: oklch(59.9% 0.116 299.3);
Tailwind
colors: {
  custom: {
    50: '#ae98d0',
    500: '#8a6fbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fbb;
$custom-light: #ae98d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fbb",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 187
  },
  "hsl": {
    "h": 261.316,
    "s": 35.849,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59899,
    "c": 0.11588,
    "h": 299.3
  },
  "luminance": 0.2036
}

Semantic roles & 50–950 ramp

primary
#8A6FBB
secondary
#C7D2B4
accent
#CC5CA4
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8A6FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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