#7F2255#7F2255

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

Color values

HEX#7F2255
RGBrgb(127, 34, 85)
HSLhsl(327, 58%, 32%)
HSVhsv(327, 73%, 50%)
CMYKcmyk(0%, 73.2%, 33.1%, 50.2%)
CIE-LABlab(30.19, 44.31, -8.23)
CIE-LCHlch(30.19, 45.07, 349.48°)
OKLaboklab(41.63% 0.1354 -0.0214)
OKLCHoklch(41.63% 0.137 351)
XYZxyz(10.9647, 6.3132, 9.2337)
Luminance0.0631 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2255 #227F4C
analogous
#7B227F #7F2255 #7F2227
triadic
#7F2255 #557F22 #22557F
tetradic
#7F2255 #7F7B22 #227F4C #22277F
square
#7F2255 #7F7B22 #227F4C #22277F
split-complementary
#7F2255 #277F22 #227F7B
monochromatic
#1E0814 #4F1535 #7F2255 #AF2F75 #CF4C94

Accessibility & contrast

On white

9.28
#7F2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2255
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2255#FFFFFF#000000##FFFFFF
##7F22551.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313C56
Deuteranopia (green-blind)
#4B4D53
Tritanopia (blue-blind)
#891C38
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f2255;
/* rgb */ color: rgb(127, 34, 85);
/* oklch */ color: oklch(41.6% 0.137 351.0);
Tailwind
colors: {
  custom: {
    50: '#a86584',
    500: '#7f2255',
    950: '#000000',
  },
}
SCSS
$custom: #7f2255;
$custom-light: #a86584;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2255",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 327.097,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41626,
    "c": 0.13703,
    "h": 351
  },
  "luminance": 0.06312
}

Semantic roles & 50–950 ramp

primary
#7F2255
secondary
#4BB279
accent
#E18C47
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7F2255

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

Preview Lab → · Contrast checker → · Palette generator →

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