#97228D#97228D

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

Color values

HEX#97228D
RGBrgb(151, 34, 141)
HSLhsl(305, 63%, 36%)
HSVhsv(305, 77%, 59%)
CMYKcmyk(0%, 77.5%, 6.6%, 40.8%)
CIE-LABlab(37.20, 58.56, -32.51)
CIE-LCHlch(37.20, 66.98, 330.96°)
OKLaboklab(48.39% 0.168 -0.0895)
OKLCHoklch(48.39% 0.19 332)
XYZxyz(18.1423, 9.6480, 26.1009)
Luminance0.0965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97228D #22972C
analogous
#672297 #97228D #972253
triadic
#97228D #8D9722 #228D97
tetradic
#97228D #976722 #22972C #225397
square
#97228D #976722 #22972C #225397
split-complementary
#97228D #539722 #229767
monochromatic
#330C30 #65175E #97228D #C92DBC #DA5ACF

Accessibility & contrast

On white

7.17
#97228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#97228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97228D
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97228D#FFFFFF#000000##FFFFFF
##97228D1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#495D8A
Tritanopia (blue-blind)
#9E3056
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #97228d;
/* rgb */ color: rgb(151, 34, 141);
/* oklch */ color: oklch(48.4% 0.190 332.0);
Tailwind
colors: {
  custom: {
    50: '#b96baf',
    500: '#97228d',
    950: '#000000',
  },
}
SCSS
$custom: #97228d;
$custom-light: #b96baf;
$custom-dark: #000000;
JSON
{
  "hex": "#97228d",
  "rgb": {
    "r": 151,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 305.128,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48389,
    "c": 0.19032,
    "h": 332
  },
  "luminance": 0.09646
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #97228D

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

Preview Lab → · Contrast checker → · Palette generator →

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