#8A6BB5#8A6BB5

#8A6BB5 is a mid, moderate violet. Relative luminance 0.193; OKLCH L 58.9% C 0.115 H 302.3°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8A6BB5
RGBrgb(138, 107, 181)
HSLhsl(265, 33%, 56%)
HSVhsv(265, 41%, 71%)
CMYKcmyk(23.8%, 40.9%, 0%, 29%)
CIE-LABlab(50.98, 27.65, -34.75)
CIE-LCHlch(50.98, 44.40, 308.50°)
OKLaboklab(58.85% 0.0612 -0.0968)
OKLCHoklch(58.85% 0.115 302.3)
XYZxyz(24.0776, 19.2549, 46.1552)
Luminance0.1925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BB5 #96B56B
analogous
#6B71B5 #8A6BB5 #AF6BB5
triadic
#8A6BB5 #B58A6B #6BB58A
tetradic
#8A6BB5 #B56B71 #96B56B #6BB5AF
square
#8A6BB5 #B56B71 #96B56B #6BB5AF
split-complementary
#8A6BB5 #B5AF6B #71B56B
monochromatic
#4E376E #6B4C97 #8A6BB5 #AA94C9 #CBBDDE

Accessibility & contrast

On white

4.33
#8A6BB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#8A6BB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BB5
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BB5#FFFFFF#000000##000000
##8A6BB51.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5979B8
Deuteranopia (green-blind)
#5F79B3
Tritanopia (blue-blind)
#837787
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a6bb5;
/* rgb */ color: rgb(138, 107, 181);
/* oklch */ color: oklch(58.9% 0.115 302.3);
Tailwind
colors: {
  custom: {
    50: '#ad96cb',
    500: '#8a6bb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bb5;
$custom-light: #ad96cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bb5",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 181
  },
  "hsl": {
    "h": 265.135,
    "s": 33.333,
    "l": 56.471
  },
  "oklch": {
    "l": 0.58854,
    "c": 0.11451,
    "h": 302.3
  },
  "luminance": 0.19255
}

Semantic roles & 50–950 ramp

primary
#8A6BB5
secondary
#C0CDAF
accent
#C95E9D
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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