#7F1858#7F1858

#7F1858 is a dark, vivid pink. Relative luminance 0.059; OKLCH L 40.9% C 0.150 H 348.0°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#7F1858
RGBrgb(127, 24, 88)
HSLhsl(323, 68%, 30%)
HSVhsv(323, 81%, 50%)
CMYKcmyk(0%, 81.1%, 30.7%, 50.2%)
CIE-LABlab(29.08, 48.15, -11.88)
CIE-LCHlch(29.08, 49.59, 346.15°)
OKLaboklab(40.86% 0.147 -0.0313)
OKLCHoklch(40.86% 0.15 348)
XYZxyz(10.8410, 5.8711, 9.7930)
Luminance0.0587 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1858 #187F3F
analogous
#72187F #7F1858 #7F1825
triadic
#7F1858 #587F18 #18587F
tetradic
#7F1858 #7F7218 #187F3F #18257F
square
#7F1858 #7F7218 #187F3F #18257F
split-complementary
#7F1858 #257F18 #187F72
monochromatic
#1A0512 #4C0E34 #7F1858 #B2227C #D9389C

Accessibility & contrast

On white

9.66
#7F1858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1858
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1858#FFFFFF#000000##FFFFFF
##7F18581.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29395A
Deuteranopia (green-blind)
#474B56
Tritanopia (blue-blind)
#891236
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f1858;
/* rgb */ color: rgb(127, 24, 88);
/* oklch */ color: oklch(40.9% 0.150 348.0);
Tailwind
colors: {
  custom: {
    50: '#a86187',
    500: '#7f1858',
    950: '#000000',
  },
}
SCSS
$custom: #7f1858;
$custom-light: #a86187;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1858",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 322.718,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.40861,
    "c": 0.15027,
    "h": 348
  },
  "luminance": 0.0587
}

Semantic roles & 50–950 ramp

primary
#7F1858
secondary
#3FB36B
accent
#EB7F3D
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7F1858

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

Preview Lab → · Contrast checker → · Palette generator →

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