#8A6FA2#8A6FA2

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

Color values

HEX#8A6FA2
RGBrgb(138, 111, 162)
HSLhsl(272, 22%, 54%)
HSVhsv(272, 31%, 64%)
CMYKcmyk(14.8%, 31.5%, 0%, 36.5%)
CIE-LABlab(51.13, 20.80, -23.47)
CIE-LCHlch(51.13, 31.36, 311.55°)
OKLaboklab(58.69% 0.0507 -0.0644)
OKLCHoklch(58.69% 0.082 308.2)
XYZxyz(22.6861, 19.3810, 36.7212)
Luminance0.1938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FA2 #87A26F
analogous
#706FA2 #8A6FA2 #A26FA0
triadic
#8A6FA2 #A28A6F #6FA28A
tetradic
#8A6FA2 #A2706F #87A26F #6FA0A2
square
#8A6FA2 #A2706F #87A26F #6FA0A2
split-complementary
#8A6FA2 #A0A26F #6FA270
monochromatic
#4C3B5C #6B5381 #8A6FA2 #A894BA #C6B9D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A6FA2#FFFFFF#000000##000000
##8A6FA21.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)
#6679A4
Deuteranopia (green-blind)
#6B7AA0
Tritanopia (blue-blind)
#877681
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6fa2;
/* rgb */ color: rgb(138, 111, 162);
/* oklch */ color: oklch(58.7% 0.082 308.2);
Tailwind
colors: {
  custom: {
    50: '#ad98bd',
    500: '#8a6fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fa2;
$custom-light: #ad98bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fa2",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 162
  },
  "hsl": {
    "h": 271.765,
    "s": 21.519,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58688,
    "c": 0.08201,
    "h": 308.2
  },
  "luminance": 0.19381
}

Semantic roles & 50–950 ramp

primary
#8A6FA2
secondary
#B6C1AB
accent
#BE6A91
background
#FAF9FB
surface
#F4F2F6
border
#CECCD0
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A6FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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