#7F2158#7F2158

#7F2158 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.7% C 0.140 H 349.0°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#7F2158
RGBrgb(127, 33, 88)
HSLhsl(325, 59%, 31%)
HSVhsv(325, 74%, 50%)
CMYKcmyk(0%, 74%, 30.7%, 50.2%)
CIE-LABlab(30.17, 45.08, -10.22)
CIE-LCHlch(30.17, 46.23, 347.22°)
OKLaboklab(41.65% 0.1374 -0.0268)
OKLCHoklch(41.65% 0.14 349)
XYZxyz(11.0583, 6.3055, 9.8654)
Luminance0.0630 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2158 #217F48
analogous
#77217F #7F2158 #7F2129
triadic
#7F2158 #587F21 #21587F
tetradic
#7F2158 #7F7721 #217F48 #21297F
square
#7F2158 #7F7721 #217F48 #21297F
split-complementary
#7F2158 #297F21 #217F77
monochromatic
#1E0815 #4E1436 #7F2158 #B02E7A #D04A99

Accessibility & contrast

On white

9.29
#7F2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7F2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2158
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2158#FFFFFF#000000##FFFFFF
##7F21581.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3D5A
Deuteranopia (green-blind)
#4A4D56
Tritanopia (blue-blind)
#881C39
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f2158;
/* rgb */ color: rgb(127, 33, 88);
/* oklch */ color: oklch(41.7% 0.140 349.0);
Tailwind
colors: {
  custom: {
    50: '#a86587',
    500: '#7f2158',
    950: '#000000',
  },
}
SCSS
$custom: #7f2158;
$custom-light: #a86587;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2158",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 324.894,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41652,
    "c": 0.13997,
    "h": 349
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#7F2158
secondary
#4AB275
accent
#E28746
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7F2158

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

Preview Lab → · Contrast checker → · Palette generator →

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