#9A6798#9A6798

#9A6798 is a mid, moderate purple. Relative luminance 0.188; OKLCH L 58.5% C 0.094 H 328.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#9A6798
RGBrgb(154, 103, 152)
HSLhsl(302, 20%, 50%)
HSVhsv(302, 33%, 60%)
CMYKcmyk(0%, 33.1%, 1.3%, 39.6%)
CIE-LABlab(50.50, 28.71, -18.43)
CIE-LCHlch(50.50, 34.12, 327.30°)
OKLaboklab(58.47% 0.08 -0.0499)
OKLCHoklch(58.47% 0.094 328)
XYZxyz(23.8437, 18.8384, 32.0799)
Luminance0.1884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A6798 #679A69
analogous
#82679A #9A6798 #9A677E
triadic
#9A6798 #989A67 #67989A
tetradic
#9A6798 #9A8267 #679A69 #677E9A
square
#9A6798 #9A8267 #679A69 #677E9A
split-complementary
#9A6798 #7E9A67 #679A82
monochromatic
#513650 #764E74 #9A6798 #B28CB1 #CBB1CA

Accessibility & contrast

On white

4.40
#9A6798 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#9A6798 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A6798
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A6798#FFFFFF#000000##000000
##9A67981.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#64749A
Deuteranopia (green-blind)
#717B96
Tritanopia (blue-blind)
#9D6B79
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9a6798;
/* rgb */ color: rgb(154, 103, 152);
/* oklch */ color: oklch(58.5% 0.094 328.0);
Tailwind
colors: {
  custom: {
    50: '#b893b6',
    500: '#9a6798',
    950: '#000000',
  },
}
SCSS
$custom: #9a6798;
$custom-light: #b893b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a6798",
  "rgb": {
    "r": 154,
    "g": 103,
    "b": 152
  },
  "hsl": {
    "h": 302.353,
    "s": 20.158,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58467,
    "c": 0.09426,
    "h": 328
  },
  "luminance": 0.18838
}

Semantic roles & 50–950 ramp

primary
#9A6798
secondary
#A3BAA4
accent
#BD6E6B
background
#FBF9FB
surface
#F6F1F6
border
#D0CBD0
text
#110D11
muted
#807E80

Preview Lab

Preview with #9A6798

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

Preview Lab → · Contrast checker → · Palette generator →

#9A6798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva