#8A6BB4#8A6BB4

#8A6BB4 is a mid, moderate violet. Relative luminance 0.192; OKLCH L 58.8% C 0.113 H 302.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A6BB4
RGBrgb(138, 107, 180)
HSLhsl(265, 33%, 56%)
HSVhsv(265, 41%, 71%)
CMYKcmyk(23.3%, 40.6%, 0%, 29.4%)
CIE-LABlab(50.94, 27.40, -34.24)
CIE-LCHlch(50.94, 43.86, 308.67°)
OKLaboklab(58.8% 0.061 -0.0953)
OKLCHoklch(58.8% 0.113 302.6)
XYZxyz(23.9754, 19.2140, 45.6167)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BB4 #95B46B
analogous
#6B71B4 #8A6BB4 #AE6BB4
triadic
#8A6BB4 #B48A6B #6BB48A
tetradic
#8A6BB4 #B46B71 #95B46B #6BB4AE
square
#8A6BB4 #B46B71 #95B46B #6BB4AE
split-complementary
#8A6BB4 #B4AE6B #71B46B
monochromatic
#4E376D #6B4C96 #8A6BB4 #AA94C9 #CABCDD

Accessibility & contrast

On white

4.34
#8A6BB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#8A6BB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BB4
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BB4#FFFFFF#000000##000000
##8A6BB41.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5979B7
Deuteranopia (green-blind)
#6079B2
Tritanopia (blue-blind)
#837787
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a6bb4;
/* rgb */ color: rgb(138, 107, 180);
/* oklch */ color: oklch(58.8% 0.113 302.6);
Tailwind
colors: {
  custom: {
    50: '#ad96cb',
    500: '#8a6bb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bb4;
$custom-light: #ad96cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bb4",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 180
  },
  "hsl": {
    "h": 265.479,
    "s": 32.735,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58803,
    "c": 0.11318,
    "h": 302.6
  },
  "luminance": 0.19214
}

Semantic roles & 50–950 ramp

primary
#8A6BB4
secondary
#C0CCAE
accent
#C95F9C
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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