#9A6797#9A6797

#9A6797 is a mid, moderate purple. Relative luminance 0.188; OKLCH L 58.4% C 0.093 H 328.7°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9A6797
RGBrgb(154, 103, 151)
HSLhsl(304, 20%, 50%)
HSVhsv(304, 33%, 60%)
CMYKcmyk(0%, 33.1%, 1.9%, 39.6%)
CIE-LABlab(50.46, 28.52, -17.90)
CIE-LCHlch(50.46, 33.67, 327.88°)
OKLaboklab(58.43% 0.0797 -0.0484)
OKLCHoklch(58.43% 0.093 328.7)
XYZxyz(23.7622, 18.8058, 31.6504)
Luminance0.1880 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A6797 #679A6A
analogous
#83679A #9A6797 #9A677D
triadic
#9A6797 #979A67 #67979A
tetradic
#9A6797 #9A8367 #679A6A #677D9A
square
#9A6797 #9A8367 #679A6A #677D9A
split-complementary
#9A6797 #7D9A67 #679A83
monochromatic
#51364F #764E73 #9A6797 #B28CB0 #CBB1C9

Accessibility & contrast

On white

4.41
#9A6797 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#9A6797 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A6797
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A6797#FFFFFF#000000##000000
##9A67971.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#647499
Deuteranopia (green-blind)
#717B95
Tritanopia (blue-blind)
#9E6B78
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9a6797;
/* rgb */ color: rgb(154, 103, 151);
/* oklch */ color: oklch(58.4% 0.093 328.7);
Tailwind
colors: {
  custom: {
    50: '#b893b5',
    500: '#9a6797',
    950: '#000000',
  },
}
SCSS
$custom: #9a6797;
$custom-light: #b893b5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a6797",
  "rgb": {
    "r": 154,
    "g": 103,
    "b": 151
  },
  "hsl": {
    "h": 303.529,
    "s": 20.158,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58425,
    "c": 0.09323,
    "h": 328.7
  },
  "luminance": 0.18805
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A6797

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

Preview Lab → · Contrast checker → · Palette generator →

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