#8A6BB8#8A6BB8

#8A6BB8 is a mid, moderate violet. Relative luminance 0.194; OKLCH L 59.0% C 0.119 H 301.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A6BB8
RGBrgb(138, 107, 184)
HSLhsl(264, 35%, 57%)
HSVhsv(264, 42%, 72%)
CMYKcmyk(25%, 41.8%, 0%, 27.8%)
CIE-LABlab(51.13, 28.38, -36.26)
CIE-LCHlch(51.13, 46.05, 308.05°)
OKLaboklab(59.01% 0.0618 -0.1011)
OKLCHoklch(59.01% 0.119 301.4)
XYZxyz(24.3887, 19.3793, 47.7938)
Luminance0.1938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BB8 #99B86B
analogous
#6B73B8 #8A6BB8 #B16BB8
triadic
#8A6BB8 #B88A6B #6BB88A
tetradic
#8A6BB8 #B86B73 #99B86B #6BB8B1
square
#8A6BB8 #B86B73 #99B86B #6BB8B1
split-complementary
#8A6BB8 #B8B16B #73B86B
monochromatic
#4F3772 #6B4B9B #8A6BB8 #AB94CC #CBBEE0

Accessibility & contrast

On white

4.31
#8A6BB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8A6BB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BB8
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BB8#FFFFFF#000000##000000
##8A6BB81.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5779BB
Deuteranopia (green-blind)
#5D79B6
Tritanopia (blue-blind)
#827889
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6bb8;
/* rgb */ color: rgb(138, 107, 184);
/* oklch */ color: oklch(59.0% 0.119 301.4);
Tailwind
colors: {
  custom: {
    50: '#ae96cd',
    500: '#8a6bb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bb8;
$custom-light: #ae96cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bb8",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 184
  },
  "hsl": {
    "h": 264.156,
    "s": 35.16,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5901,
    "c": 0.11853,
    "h": 301.4
  },
  "luminance": 0.19379
}

Semantic roles & 50–950 ramp

primary
#8A6BB8
secondary
#C2CFB0
accent
#CB5D9F
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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