#97228C#97228C

#97228C is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.190 H 332.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#97228C
RGBrgb(151, 34, 140)
HSLhsl(306, 63%, 36%)
HSVhsv(306, 77%, 59%)
CMYKcmyk(0%, 77.5%, 7.3%, 40.8%)
CIE-LABlab(37.15, 58.41, -31.98)
CIE-LCHlch(37.15, 66.59, 331.30°)
OKLaboklab(48.33% 0.1679 -0.088)
OKLCHoklch(48.33% 0.19 332.4)
XYZxyz(18.0682, 9.6183, 25.7108)
Luminance0.0962 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97228C #22972D
analogous
#682297 #97228C #972252
triadic
#97228C #8C9722 #228C97
tetradic
#97228C #976822 #22972D #225297
square
#97228C #976822 #22972D #225297
split-complementary
#97228C #529722 #229768
monochromatic
#330C2F #65175E #97228C #C92DBA #DA5ACE

Accessibility & contrast

On white

7.18
#97228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#97228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97228C
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97228C#FFFFFF#000000##FFFFFF
##97228C1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4D8F
Deuteranopia (green-blind)
#4A5D89
Tritanopia (blue-blind)
#9E3056
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #97228c;
/* rgb */ color: rgb(151, 34, 140);
/* oklch */ color: oklch(48.3% 0.190 332.4);
Tailwind
colors: {
  custom: {
    50: '#b96bae',
    500: '#97228c',
    950: '#000000',
  },
}
SCSS
$custom: #97228c;
$custom-light: #b96bae;
$custom-dark: #000000;
JSON
{
  "hex": "#97228c",
  "rgb": {
    "r": 151,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 305.641,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48333,
    "c": 0.18959,
    "h": 332.4
  },
  "luminance": 0.09617
}

Semantic roles & 50–950 ramp

primary
#97228C
secondary
#57BE60
accent
#E65142
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #97228C

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

Preview Lab → · Contrast checker → · Palette generator →

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