#7F2157#7F2157

#7F2157 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.6% C 0.139 H 349.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#7F2157
RGBrgb(127, 33, 87)
HSLhsl(326, 59%, 31%)
HSVhsv(326, 74%, 50%)
CMYKcmyk(0%, 74%, 31.5%, 50.2%)
CIE-LABlab(30.13, 44.95, -9.63)
CIE-LCHlch(30.13, 45.97, 347.91°)
OKLaboklab(41.61% 0.1371 -0.0252)
OKLCHoklch(41.61% 0.139 349.6)
XYZxyz(11.0171, 6.2891, 9.6487)
Luminance0.0629 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2157 #217F49
analogous
#78217F #7F2157 #7F2128
triadic
#7F2157 #577F21 #21577F
tetradic
#7F2157 #7F7821 #217F49 #21287F
square
#7F2157 #7F7821 #217F49 #21287F
split-complementary
#7F2157 #287F21 #217F78
monochromatic
#1E0814 #4E1436 #7F2157 #B02E78 #D04A97

Accessibility & contrast

On white

9.30
#7F2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2157
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2157#FFFFFF#000000##FFFFFF
##7F21571.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3C58
Deuteranopia (green-blind)
#4A4D55
Tritanopia (blue-blind)
#891C39
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f2157;
/* rgb */ color: rgb(127, 33, 87);
/* oklch */ color: oklch(41.6% 0.139 349.6);
Tailwind
colors: {
  custom: {
    50: '#a86586',
    500: '#7f2157',
    950: '#000000',
  },
}
SCSS
$custom: #7f2157;
$custom-light: #a86586;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2157",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 325.532,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41609,
    "c": 0.1394,
    "h": 349.6
  },
  "luminance": 0.06288
}

Semantic roles & 50–950 ramp

primary
#7F2157
secondary
#4AB276
accent
#E28846
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7F2157

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

Preview Lab → · Contrast checker → · Palette generator →

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