#8A6DCF#8A6DCF

#8A6DCF is a mid, vivid violet. Relative luminance 0.208; OKLCH L 60.6% C 0.146 H 295.3°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8A6DCF
RGBrgb(138, 109, 207)
HSLhsl(258, 51%, 62%)
HSVhsv(258, 47%, 81%)
CMYKcmyk(33.3%, 47.3%, 0%, 18.8%)
CIE-LABlab(52.78, 33.07, -46.84)
CIE-LCHlch(52.78, 57.33, 305.22°)
OKLaboklab(60.64% 0.0625 -0.1319)
OKLCHoklch(60.64% 0.146 295.3)
XYZxyz(27.2095, 20.8451, 61.6093)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DCF #B2CF6D
analogous
#6D81CF #8A6DCF #BB6DCF
triadic
#8A6DCF #CF8A6D #6DCF8A
tetradic
#8A6DCF #CF6D81 #B2CF6D #6DCFBB
square
#8A6DCF #CF6D81 #B2CF6D #6DCFBB
split-complementary
#8A6DCF #CFBB6D #81CF6D
monochromatic
#4D3092 #653FC0 #8A6DCF #AF9BDE #D4C9ED

Accessibility & contrast

On white

4.06
#8A6DCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#8A6DCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DCF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DCF#FFFFFF#000000##000000
##8A6DCF1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7FD3
Deuteranopia (green-blind)
#517DCD
Tritanopia (blue-blind)
#7A8094
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6dcf;
/* rgb */ color: rgb(138, 109, 207);
/* oklch */ color: oklch(60.6% 0.146 295.3);
Tailwind
colors: {
  custom: {
    50: '#af97de',
    500: '#8a6dcf',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dcf;
$custom-light: #af97de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dcf",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 207
  },
  "hsl": {
    "h": 257.755,
    "s": 50.515,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60636,
    "c": 0.14599,
    "h": 295.3
  },
  "luminance": 0.20846
}

Semantic roles & 50–950 ramp

primary
#8A6DCF
secondary
#D3DEBA
accent
#BE2891
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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