#9E2F7B#9E2F7B

#9E2F7B is a mid, vivid pink. Relative luminance 0.107; OKLCH L 49.7% C 0.167 H 343.0°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9E2F7B
RGBrgb(158, 47, 123)
HSLhsl(319, 54%, 40%)
HSVhsv(319, 70%, 62%)
CMYKcmyk(0%, 70.3%, 22.2%, 38%)
CIE-LABlab(39.13, 53.14, -18.30)
CIE-LCHlch(39.13, 56.21, 341.00°)
OKLaboklab(49.73% 0.1597 -0.049)
OKLCHoklch(49.73% 0.167 343)
XYZxyz(18.6928, 10.7341, 19.8225)
Luminance0.1073 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F7B #2F9E52
analogous
#892F9E #9E2F7B #9E2F43
triadic
#9E2F7B #7B9E2F #2F7B9E
tetradic
#9E2F7B #9E892F #2F9E52 #2F439E
square
#9E2F7B #9E892F #2F9E52 #2F439E
split-complementary
#9E2F7B #439E2F #2F9E89
monochromatic
#401332 #6F2156 #9E2F7B #C7439D #D572B6

Accessibility & contrast

On white

6.67
#9E2F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9E2F7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2F7B
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F7B#FFFFFF#000000##FFFFFF
##9E2F7B1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39507D
Deuteranopia (green-blind)
#5B6378
Tritanopia (blue-blind)
#A82F51
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9e2f7b;
/* rgb */ color: rgb(158, 47, 123);
/* oklch */ color: oklch(49.7% 0.167 343.0);
Tailwind
colors: {
  custom: {
    50: '#be71a1',
    500: '#9e2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f7b;
$custom-light: #be71a1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f7b",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 318.919,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49729,
    "c": 0.167,
    "h": 343
  },
  "luminance": 0.10732
}

Semantic roles & 50–950 ramp

primary
#9E2F7B
secondary
#6CBD85
accent
#DE794A
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #9E2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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