#942158#942158

#942158 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.3% C 0.157 H 356.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#942158
RGBrgb(148, 33, 88)
HSLhsl(331, 64%, 35%)
HSVhsv(331, 78%, 58%)
CMYKcmyk(0%, 77.7%, 40.5%, 42%)
CIE-LABlab(34.17, 51.03, -3.82)
CIE-LCHlch(34.17, 51.18, 355.72°)
OKLaboklab(45.32% 0.1568 -0.0094)
OKLCHoklch(45.32% 0.157 356.6)
XYZxyz(14.5191, 8.0900, 10.0276)
Luminance0.0809 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942158 #21945D
analogous
#942191 #942158 #942321
triadic
#942158 #589421 #215894
tetradic
#942158 #919421 #21945D #232194
square
#942158 #919421 #21945D #232194
split-complementary
#942158 #219423 #219194
monochromatic
#300B1C #62163A #942158 #C62C76 #D95695

Accessibility & contrast

On white

8.02
#942158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#942158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #942158
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942158#FFFFFF#000000##FFFFFF
##9421581.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394359
Deuteranopia (green-blind)
#595855
Tritanopia (blue-blind)
#A01039
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #942158;
/* rgb */ color: rgb(148, 33, 88);
/* oklch */ color: oklch(45.3% 0.157 356.6);
Tailwind
colors: {
  custom: {
    50: '#b86887',
    500: '#942158',
    950: '#000000',
  },
}
SCSS
$custom: #942158;
$custom-light: #b86887;
$custom-dark: #000000;
JSON
{
  "hex": "#942158",
  "rgb": {
    "r": 148,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 331.304,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45319,
    "c": 0.1571,
    "h": 356.6
  },
  "luminance": 0.08088
}

Semantic roles & 50–950 ramp

primary
#942158
secondary
#54BD8B
accent
#E79741
background
#FBF6F8
surface
#F7EBEF
border
#D0C6CA
text
#12070B
muted
#817A7C

Preview Lab

Preview with #942158

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

Preview Lab → · Contrast checker → · Palette generator →

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