#974797#974797

#974797 is a mid, vivid purple. Relative luminance 0.133; OKLCH L 52.9% C 0.148 H 327.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#974797
RGBrgb(151, 71, 151)
HSLhsl(300, 36%, 44%)
HSVhsv(300, 53%, 59%)
CMYKcmyk(0%, 53%, 0%, 40.8%)
CIE-LABlab(43.24, 44.99, -29.09)
CIE-LCHlch(43.24, 53.57, 327.12°)
OKLaboklab(52.95% 0.1251 -0.0799)
OKLCHoklch(52.95% 0.148 327.4)
XYZxyz(20.6013, 13.3213, 30.7583)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#974797 #479747
analogous
#6F4797 #974797 #97476F
triadic
#974797 #979747 #479797
tetradic
#974797 #976F47 #479747 #476F97
square
#974797 #976F47 #479747 #476F97
split-complementary
#974797 #6F9747 #47976F
monochromatic
#442044 #6D336D #974797 #B665B6 #CA8ECA

Accessibility & contrast

On white

5.73
#974797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#974797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #974797
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##974797#FFFFFF#000000##FFFFFF
##9747971.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5F9A
Deuteranopia (green-blind)
#586A95
Tritanopia (blue-blind)
#9B5068
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #974797;
/* rgb */ color: rgb(151, 71, 151);
/* oklch */ color: oklch(52.9% 0.148 327.4);
Tailwind
colors: {
  custom: {
    50: '#b87eb6',
    500: '#974797',
    950: '#000000',
  },
}
SCSS
$custom: #974797;
$custom-light: #b87eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#974797",
  "rgb": {
    "r": 151,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 300,
    "s": 36.036,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52945,
    "c": 0.14843,
    "h": 327.4
  },
  "luminance": 0.1332
}

Semantic roles & 50–950 ramp

primary
#974797
secondary
#84B684
accent
#CC5C5C
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#120A11
muted
#817C80

Preview Lab

Preview with #974797

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

Preview Lab → · Contrast checker → · Palette generator →

#974797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva