#942871#942871

#942871 is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.0% C 0.162 H 343.7°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#942871
RGBrgb(148, 40, 113)
HSLhsl(319, 57%, 37%)
HSVhsv(319, 73%, 58%)
CMYKcmyk(0%, 73%, 23.6%, 42%)
CIE-LABlab(36.00, 51.67, -17.01)
CIE-LCHlch(36.00, 54.40, 341.78°)
OKLaboklab(46.97% 0.1558 -0.0454)
OKLCHoklch(46.97% 0.162 343.7)
XYZxyz(15.9528, 9.0074, 16.5180)
Luminance0.0901 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942871 #28944B
analogous
#812894 #942871 #94283B
triadic
#942871 #719428 #287194
tetradic
#942871 #948128 #28944B #283B94
square
#942871 #948128 #28944B #283B94
split-complementary
#942871 #3B9428 #289481
monochromatic
#340E27 #641B4C #942871 #C43596 #D562AF

Accessibility & contrast

On white

7.50
#942871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#942871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #942871
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942871#FFFFFF#000000##FFFFFF
##9428711.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334973
Deuteranopia (green-blind)
#545B6E
Tritanopia (blue-blind)
#9E2849
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #942871;
/* rgb */ color: rgb(148, 40, 113);
/* oklch */ color: oklch(47.0% 0.162 343.7);
Tailwind
colors: {
  custom: {
    50: '#b76c9a',
    500: '#942871',
    950: '#000000',
  },
}
SCSS
$custom: #942871;
$custom-light: #b76c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#942871",
  "rgb": {
    "r": 148,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 319.444,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46972,
    "c": 0.16225,
    "h": 343.7
  },
  "luminance": 0.09006
}

Semantic roles & 50–950 ramp

primary
#942871
secondary
#5EBA7C
accent
#E17947
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #942871

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

Preview Lab → · Contrast checker → · Palette generator →

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