#972898#972898

#972898 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.193 H 327.6°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#972898
RGBrgb(151, 40, 152)
HSLhsl(299, 58%, 38%)
HSVhsv(299, 74%, 60%)
CMYKcmyk(0.7%, 73.7%, 0%, 40.4%)
CIE-LABlab(38.49, 58.45, -37.18)
CIE-LCHlch(38.49, 69.27, 327.54°)
OKLaboklab(49.51% 0.1626 -0.1031)
OKLCHoklch(49.51% 0.193 327.6)
XYZxyz(19.1885, 10.3653, 30.6897)
Luminance0.1036 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#972898 #299828
analogous
#5F2898 #972898 #982861
triadic
#972898 #989728 #289897
tetradic
#972898 #985F28 #299828 #286198
square
#972898 #985F28 #299828 #286198
split-complementary
#972898 #619828 #28985F
monochromatic
#370F37 #671B68 #972898 #C735C8 #D564D6

Accessibility & contrast

On white

6.83
#972898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#972898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #972898
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##972898#FFFFFF#000000##FFFFFF
##9728981.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10519B
Deuteranopia (green-blind)
#456095
Tritanopia (blue-blind)
#9C3A5E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #972898;
/* rgb */ color: rgb(151, 40, 152);
/* oklch */ color: oklch(49.5% 0.193 327.6);
Tailwind
colors: {
  custom: {
    50: '#b96eb7',
    500: '#972898',
    950: '#000000',
  },
}
SCSS
$custom: #972898;
$custom-light: #b96eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#972898",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 299.464,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4951,
    "c": 0.1925,
    "h": 327.6
  },
  "luminance": 0.10364
}

Semantic roles & 50–950 ramp

primary
#972898
secondary
#61BC60
accent
#E24648
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #972898

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

Preview Lab → · Contrast checker → · Palette generator →

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