#942E7F#942E7F

#942E7F is a mid, vivid pink. Relative luminance 0.098; OKLCH L 48.2% C 0.164 H 337.1°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#942E7F
RGBrgb(148, 46, 127)
HSLhsl(312, 53%, 38%)
HSVhsv(312, 69%, 58%)
CMYKcmyk(0%, 68.9%, 14.2%, 42%)
CIE-LABlab(37.45, 51.43, -23.52)
CIE-LCHlch(37.45, 56.56, 335.43°)
OKLaboklab(48.24% 0.1512 -0.0638)
OKLCHoklch(48.24% 0.164 337.1)
XYZxyz(17.0208, 9.7837, 21.0666)
Luminance0.0978 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942E7F #2E9443
analogous
#762E94 #942E7F #942E4C
triadic
#942E7F #7F942E #2E7F94
tetradic
#942E7F #94762E #2E9443 #2E4C94
square
#942E7F #94762E #2E9443 #2E4C94
split-complementary
#942E7F #4C942E #2E9476
monochromatic
#37112F #651F57 #942E7F #C33DA7 #D16BBC

Accessibility & contrast

On white

7.10
#942E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#942E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #942E7F
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942E7F#FFFFFF#000000##FFFFFF
##942E7F1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314E81
Deuteranopia (green-blind)
#525E7C
Tritanopia (blue-blind)
#9C3352
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #942e7f;
/* rgb */ color: rgb(148, 46, 127);
/* oklch */ color: oklch(48.2% 0.164 337.1);
Tailwind
colors: {
  custom: {
    50: '#b76fa4',
    500: '#942e7f',
    950: '#000000',
  },
}
SCSS
$custom: #942e7f;
$custom-light: #b76fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#942e7f",
  "rgb": {
    "r": 148,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 312.353,
    "s": 52.577,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48237,
    "c": 0.16416,
    "h": 337.1
  },
  "luminance": 0.09782
}

Semantic roles & 50–950 ramp

primary
#942E7F
secondary
#66B877
accent
#DC694C
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#12080F
muted
#817B7F

Preview Lab

Preview with #942E7F

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

Preview Lab → · Contrast checker → · Palette generator →

#942E7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva