#8A6FB2#8A6FB2

#8A6FB2 is a mid, moderate violet. Relative luminance 0.200; OKLCH L 59.4% C 0.104 H 301.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A6FB2
RGBrgb(138, 111, 178)
HSLhsl(264, 30%, 57%)
HSVhsv(264, 38%, 70%)
CMYKcmyk(22.5%, 37.6%, 0%, 30.2%)
CIE-LABlab(51.82, 24.57, -31.70)
CIE-LCHlch(51.82, 40.11, 307.77°)
OKLaboklab(59.44% 0.0547 -0.088)
OKLCHoklch(59.44% 0.104 301.9)
XYZxyz(24.1998, 19.9865, 44.6937)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FB2 #97B26F
analogous
#6F76B2 #8A6FB2 #AC6FB2
triadic
#8A6FB2 #B28A6F #6FB28A
tetradic
#8A6FB2 #B26F76 #97B26F #6FB2AC
square
#8A6FB2 #B26F76 #97B26F #6FB2AC
split-complementary
#8A6FB2 #B2AC6F #76B26F
monochromatic
#4E3A6D #6B4F94 #8A6FB2 #AA97C7 #CBBFDD

Accessibility & contrast

On white

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

On black

5.00
#8A6FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FB2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FB2#FFFFFF#000000##000000
##8A6FB21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F7BB5
Deuteranopia (green-blind)
#647BB0
Tritanopia (blue-blind)
#837A88
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a6fb2;
/* rgb */ color: rgb(138, 111, 178);
/* oklch */ color: oklch(59.4% 0.104 301.9);
Tailwind
colors: {
  custom: {
    50: '#ad98c9',
    500: '#8a6fb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fb2;
$custom-light: #ad98c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fb2",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 178
  },
  "hsl": {
    "h": 264.179,
    "s": 30.317,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59443,
    "c": 0.10363,
    "h": 301.9
  },
  "luminance": 0.19987
}

Semantic roles & 50–950 ramp

primary
#8A6FB2
secondary
#C1CCB1
accent
#C7619E
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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