#97227F#97227F

#97227F is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.6% C 0.180 H 337.9°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#97227F
RGBrgb(151, 34, 127)
HSLhsl(312, 63%, 36%)
HSVhsv(312, 77%, 59%)
CMYKcmyk(0%, 77.5%, 15.9%, 40.8%)
CIE-LABlab(36.48, 56.44, -25.00)
CIE-LCHlch(36.48, 61.73, 336.11°)
OKLaboklab(47.63% 0.167 -0.0679)
OKLCHoklch(47.63% 0.18 337.9)
XYZxyz(17.1657, 9.2573, 20.9574)
Luminance0.0926 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97227F #22973A
analogous
#752297 #97227F #972245
triadic
#97227F #7F9722 #227F97
tetradic
#97227F #977522 #22973A #224597
square
#97227F #977522 #22973A #224597
split-complementary
#97227F #459722 #229775
monochromatic
#330C2B #651755 #97227F #C92DA9 #DA5ABF

Accessibility & contrast

On white

7.37
#97227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#97227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97227F
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97227F#FFFFFF#000000##FFFFFF
##97227F1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A81
Deuteranopia (green-blind)
#4F5C7C
Tritanopia (blue-blind)
#A0294E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #97227f;
/* rgb */ color: rgb(151, 34, 127);
/* oklch */ color: oklch(47.6% 0.180 337.9);
Tailwind
colors: {
  custom: {
    50: '#b96aa4',
    500: '#97227f',
    950: '#000000',
  },
}
SCSS
$custom: #97227f;
$custom-light: #b96aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#97227f",
  "rgb": {
    "r": 151,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 312.308,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4763,
    "c": 0.1803,
    "h": 337.9
  },
  "luminance": 0.09256
}

Semantic roles & 50–950 ramp

primary
#97227F
secondary
#57BE6C
accent
#E66342
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #97227F

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

Preview Lab → · Contrast checker → · Palette generator →

#97227F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva