#8A6DBC#8A6DBC

#8A6DBC is a mid, vivid violet. Relative luminance 0.200; OKLCH L 59.6% C 0.121 H 299.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A6DBC
RGBrgb(138, 109, 188)
HSLhsl(262, 37%, 58%)
HSVhsv(262, 42%, 74%)
CMYKcmyk(26.6%, 42%, 0%, 26.3%)
CIE-LABlab(51.80, 28.20, -37.50)
CIE-LCHlch(51.80, 46.92, 306.95°)
OKLaboklab(59.59% 0.0597 -0.1047)
OKLCHoklch(59.59% 0.121 299.7)
XYZxyz(25.0249, 19.9713, 50.1036)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DBC #9FBC6D
analogous
#6D77BC #8A6DBC #B16DBC
triadic
#8A6DBC #BC8A6D #6DBC8A
tetradic
#8A6DBC #BC6D77 #9FBC6D #6DBCB1
square
#8A6DBC #BC6D77 #9FBC6D #6DBCB1
split-complementary
#8A6DBC #BCB16D #77BC6D
monochromatic
#4F3778 #6A4AA2 #8A6DBC #AC97CF #CDC1E3

Accessibility & contrast

On white

4.20
#8A6DBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8A6DBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DBC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DBC#FFFFFF#000000##000000
##8A6DBC1.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#587BBF
Deuteranopia (green-blind)
#5D7BBA
Tritanopia (blue-blind)
#807B8B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6dbc;
/* rgb */ color: rgb(138, 109, 188);
/* oklch */ color: oklch(59.6% 0.121 299.7);
Tailwind
colors: {
  custom: {
    50: '#ae97d0',
    500: '#8a6dbc',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dbc;
$custom-light: #ae97d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dbc",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 188
  },
  "hsl": {
    "h": 262.025,
    "s": 37.089,
    "l": 58.235
  },
  "oklch": {
    "l": 0.59585,
    "c": 0.12055,
    "h": 299.7
  },
  "luminance": 0.19971
}

Semantic roles & 50–950 ramp

primary
#8A6DBC
secondary
#C7D2B3
accent
#CD5BA3
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8A6DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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