#97228A#97228A

#97228A is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.188 H 333.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#97228A
RGBrgb(151, 34, 138)
HSLhsl(307, 63%, 36%)
HSVhsv(307, 77%, 59%)
CMYKcmyk(0%, 77.5%, 8.6%, 40.8%)
CIE-LABlab(37.04, 58.09, -30.92)
CIE-LCHlch(37.04, 65.81, 331.97°)
OKLaboklab(48.22% 0.1679 -0.0849)
OKLCHoklch(48.22% 0.188 333.2)
XYZxyz(17.9221, 9.5599, 24.9412)
Luminance0.0956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97228A #22972F
analogous
#6A2297 #97228A #972250
triadic
#97228A #8A9722 #228A97
tetradic
#97228A #976A22 #22972F #225097
square
#97228A #976A22 #22972F #225097
split-complementary
#97228A #509722 #22976A
monochromatic
#330C2F #65175C #97228A #C92DB8 #DA5ACC

Accessibility & contrast

On white

7.21
#97228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#97228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97228A
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97228A#FFFFFF#000000##FFFFFF
##97228A1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4C8D
Deuteranopia (green-blind)
#4B5D87
Tritanopia (blue-blind)
#9E2F55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #97228a;
/* rgb */ color: rgb(151, 34, 138);
/* oklch */ color: oklch(48.2% 0.188 333.2);
Tailwind
colors: {
  custom: {
    50: '#b96bac',
    500: '#97228a',
    950: '#000000',
  },
}
SCSS
$custom: #97228a;
$custom-light: #b96bac;
$custom-dark: #000000;
JSON
{
  "hex": "#97228a",
  "rgb": {
    "r": 151,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 306.667,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48221,
    "c": 0.18811,
    "h": 333.2
  },
  "luminance": 0.09558
}

Semantic roles & 50–950 ramp

primary
#97228A
secondary
#57BE62
accent
#E65442
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #97228A

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

Preview Lab → · Contrast checker → · Palette generator →

#97228A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva