#7F2257#7F2257

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

Color values

HEX#7F2257
RGBrgb(127, 34, 87)
HSLhsl(326, 58%, 32%)
HSVhsv(326, 73%, 50%)
CMYKcmyk(0%, 73.2%, 31.5%, 50.2%)
CIE-LABlab(30.27, 44.57, -9.42)
CIE-LCHlch(30.27, 45.55, 348.06°)
OKLaboklab(41.71% 0.1359 -0.0246)
OKLCHoklch(41.71% 0.138 349.7)
XYZxyz(11.0453, 6.3454, 9.6581)
Luminance0.0634 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2257 #227F4A
analogous
#79227F #7F2257 #7F2229
triadic
#7F2257 #577F22 #22577F
tetradic
#7F2257 #7F7922 #227F4A #22297F
square
#7F2257 #7F7922 #227F4A #22297F
split-complementary
#7F2257 #297F22 #227F79
monochromatic
#1E0815 #4F1536 #7F2257 #AF2F78 #CF4C97

Accessibility & contrast

On white

9.26
#7F2257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F2257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2257
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2257#FFFFFF#000000##FFFFFF
##7F22571.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303D58
Deuteranopia (green-blind)
#4B4D55
Tritanopia (blue-blind)
#891D39
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f2257;
/* rgb */ color: rgb(127, 34, 87);
/* oklch */ color: oklch(41.7% 0.138 349.7);
Tailwind
colors: {
  custom: {
    50: '#a86686',
    500: '#7f2257',
    950: '#000000',
  },
}
SCSS
$custom: #7f2257;
$custom-light: #a86686;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2257",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 325.806,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4171,
    "c": 0.13812,
    "h": 349.7
  },
  "luminance": 0.06344
}

Semantic roles & 50–950 ramp

primary
#7F2257
secondary
#4BB277
accent
#E18947
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7F2257

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

Preview Lab → · Contrast checker → · Palette generator →

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