#902171#902171

#902171 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.7% C 0.168 H 341.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#902171
RGBrgb(144, 33, 113)
HSLhsl(317, 63%, 35%)
HSVhsv(317, 77%, 56%)
CMYKcmyk(0%, 77.1%, 21.5%, 43.5%)
CIE-LABlab(34.42, 53.04, -19.51)
CIE-LCHlch(34.42, 56.52, 339.80°)
OKLaboklab(45.69% 0.1592 -0.0524)
OKLCHoklch(45.69% 0.168 341.8)
XYZxyz(15.0266, 8.2108, 16.4131)
Luminance0.0821 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#902171 #219040
analogous
#782190 #902171 #902139
triadic
#902171 #719021 #217190
tetradic
#902171 #907821 #219040 #213990
square
#902171 #907821 #219040 #213990
split-complementary
#902171 #399021 #219078
monochromatic
#2C0A23 #5E164A #902171 #C22C98 #D854B3

Accessibility & contrast

On white

7.95
#902171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#902171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #902171
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##902171#FFFFFF#000000##FFFFFF
##9021711.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4573
Deuteranopia (green-blind)
#4F576E
Tritanopia (blue-blind)
#992346
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #902171;
/* rgb */ color: rgb(144, 33, 113);
/* oklch */ color: oklch(45.7% 0.168 341.8);
Tailwind
colors: {
  custom: {
    50: '#b4699a',
    500: '#902171',
    950: '#000000',
  },
}
SCSS
$custom: #902171;
$custom-light: #b4699a;
$custom-dark: #000000;
JSON
{
  "hex": "#902171",
  "rgb": {
    "r": 144,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 316.757,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45688,
    "c": 0.16766,
    "h": 341.8
  },
  "luminance": 0.08209
}

Semantic roles & 50–950 ramp

primary
#902171
secondary
#51BB6F
accent
#E67042
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #902171

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

Preview Lab → · Contrast checker → · Palette generator →

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