#9A2158#9A2158

#9A2158 is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.4% C 0.162 H 358.4°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#9A2158
RGBrgb(154, 33, 88)
HSLhsl(333, 65%, 37%)
HSVhsv(333, 79%, 60%)
CMYKcmyk(0%, 78.6%, 42.9%, 39.6%)
CIE-LABlab(35.33, 52.70, -1.97)
CIE-LCHlch(35.33, 52.74, 357.85°)
OKLaboklab(46.38% 0.162 -0.0045)
OKLCHoklch(46.38% 0.162 358.4)
XYZxyz(15.6329, 8.6644, 10.0798)
Luminance0.0866 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2158 #219A63
analogous
#9A2195 #9A2158 #9A2621
triadic
#9A2158 #589A21 #21589A
tetradic
#9A2158 #959A21 #219A63 #26219A
square
#9A2158 #959A21 #219A63 #26219A
split-complementary
#9A2158 #219A26 #21959A
monochromatic
#350B1E #68163B #9A2158 #CC2C75 #DC5A95

Accessibility & contrast

On white

7.69
#9A2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#9A2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A2158
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2158#FFFFFF#000000##FFFFFF
##9A21581.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C4459
Deuteranopia (green-blind)
#5D5B55
Tritanopia (blue-blind)
#A70B3A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #9a2158;
/* rgb */ color: rgb(154, 33, 88);
/* oklch */ color: oklch(46.4% 0.162 358.4);
Tailwind
colors: {
  custom: {
    50: '#bd6987',
    500: '#9a2158',
    950: '#000000',
  },
}
SCSS
$custom: #9a2158;
$custom-light: #bd6987;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2158",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 332.727,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4638,
    "c": 0.16205,
    "h": 358.4
  },
  "luminance": 0.08662
}

Semantic roles & 50–950 ramp

primary
#9A2158
secondary
#57C090
accent
#E89C40
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9A2158

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

Preview Lab → · Contrast checker → · Palette generator →

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