#9D2874#9D2874

#9D2874 is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.6% C 0.171 H 345.5°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#9D2874
RGBrgb(157, 40, 116)
HSLhsl(321, 59%, 39%)
HSVhsv(321, 75%, 62%)
CMYKcmyk(0%, 74.5%, 26.1%, 38.4%)
CIE-LABlab(37.75, 54.47, -16.07)
CIE-LCHlch(37.75, 56.79, 343.56°)
OKLaboklab(48.59% 0.1651 -0.0427)
OKLCHoklch(48.59% 0.171 345.5)
XYZxyz(17.8166, 9.9486, 17.5016)
Luminance0.0995 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2874 #289D51
analogous
#8B289D #9D2874 #9D2839
triadic
#9D2874 #749D28 #28749D
tetradic
#9D2874 #9D8B28 #289D51 #28399D
square
#9D2874 #9D8B28 #289D51 #28399D
split-complementary
#9D2874 #399D28 #289D8B
monochromatic
#3B0F2C #6C1C50 #9D2874 #CC3697 #D867B1

Accessibility & contrast

On white

7.02
#9D2874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9D2874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D2874
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2874#FFFFFF#000000##FFFFFF
##9D28741.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374C76
Deuteranopia (green-blind)
#5A6071
Tritanopia (blue-blind)
#A8264A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d2874;
/* rgb */ color: rgb(157, 40, 116);
/* oklch */ color: oklch(48.6% 0.171 345.5);
Tailwind
colors: {
  custom: {
    50: '#be6d9c',
    500: '#9d2874',
    950: '#000000',
  },
}
SCSS
$custom: #9d2874;
$custom-light: #be6d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2874",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 321.026,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48594,
    "c": 0.1705,
    "h": 345.5
  },
  "luminance": 0.09947
}

Semantic roles & 50–950 ramp

primary
#9D2874
secondary
#62BE83
accent
#E37C45
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9D2874

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

Preview Lab → · Contrast checker → · Palette generator →

#9D2874 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva