#902871#902871

#902871 is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.3% C 0.159 H 342.2°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#902871
RGBrgb(144, 40, 113)
HSLhsl(318, 57%, 36%)
HSVhsv(318, 72%, 56%)
CMYKcmyk(0%, 72.2%, 21.5%, 43.5%)
CIE-LABlab(35.28, 50.60, -18.18)
CIE-LCHlch(35.28, 53.76, 340.24°)
OKLaboklab(46.32% 0.1518 -0.0487)
OKLCHoklch(46.32% 0.159 342.2)
XYZxyz(15.2415, 8.6406, 16.4847)
Luminance0.0864 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#902871 #289047
analogous
#7B2890 #902871 #90283D
triadic
#902871 #719028 #287190
tetradic
#902871 #907B28 #289047 #283D90
square
#902871 #907B28 #289047 #283D90
split-complementary
#902871 #3D9028 #28907B
monochromatic
#300D26 #601B4B #902871 #C03597 #D360B0

Accessibility & contrast

On white

7.70
#902871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#902871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #902871
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##902871#FFFFFF#000000##FFFFFF
##9028711.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314873
Deuteranopia (green-blind)
#51596F
Tritanopia (blue-blind)
#992949
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #902871;
/* rgb */ color: rgb(144, 40, 113);
/* oklch */ color: oklch(46.3% 0.159 342.2);
Tailwind
colors: {
  custom: {
    50: '#b46b9a',
    500: '#902871',
    950: '#000000',
  },
}
SCSS
$custom: #902871;
$custom-light: #b46b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#902871",
  "rgb": {
    "r": 144,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 317.885,
    "s": 56.522,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46316,
    "c": 0.1594,
    "h": 342.2
  },
  "luminance": 0.08639
}

Semantic roles & 50–950 ramp

primary
#902871
secondary
#5CB877
accent
#E07548
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #902871

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

Preview Lab → · Contrast checker → · Palette generator →

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