#7F165B#7F165B

#7F165B is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.8% C 0.154 H 346.1°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#7F165B
RGBrgb(127, 22, 91)
HSLhsl(321, 70%, 29%)
HSVhsv(321, 83%, 50%)
CMYKcmyk(0%, 82.7%, 28.3%, 50.2%)
CIE-LABlab(29.01, 49.12, -13.96)
CIE-LCHlch(29.01, 51.06, 344.14°)
OKLaboklab(40.85% 0.1495 -0.037)
OKLCHoklch(40.85% 0.154 346.1)
XYZxyz(10.9282, 5.8424, 10.4477)
Luminance0.0584 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F165B #167F3A
analogous
#6F167F #7F165B #7F1627
triadic
#7F165B #5B7F16 #165B7F
tetradic
#7F165B #7F6F16 #167F3A #16277F
square
#7F165B #7F6F16 #167F3A #16277F
split-complementary
#7F165B #277F16 #167F6F
monochromatic
#1A0513 #4B0D36 #7F165B #B31F80 #DC34A2

Accessibility & contrast

On white

9.69
#7F165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7F165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F165B
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F165B#FFFFFF#000000##FFFFFF
##7F165B1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26395D
Deuteranopia (green-blind)
#464B59
Tritanopia (blue-blind)
#881237
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f165b;
/* rgb */ color: rgb(127, 22, 91);
/* oklch */ color: oklch(40.8% 0.154 346.1);
Tailwind
colors: {
  custom: {
    50: '#a86189',
    500: '#7f165b',
    950: '#000000',
  },
}
SCSS
$custom: #7f165b;
$custom-light: #a86189;
$custom-dark: #000000;
JSON
{
  "hex": "#7f165b",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 320.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.4085,
    "c": 0.15398,
    "h": 346.1
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

primary
#7F165B
secondary
#3DB466
accent
#ED783B
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7F165B

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

Preview Lab → · Contrast checker → · Palette generator →

#7F165B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva