#7F254B#7F254B

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

Color values

HEX#7F254B
RGBrgb(127, 37, 75)
HSLhsl(335, 55%, 32%)
HSVhsv(335, 71%, 50%)
CMYKcmyk(0%, 70.9%, 40.9%, 50.2%)
CIE-LABlab(30.27, 41.89, -1.54)
CIE-LCHlch(30.27, 41.92, 357.89°)
OKLaboklab(41.56% 0.1283 -0.0035)
OKLCHoklch(41.56% 0.128 358.4)
XYZxyz(10.6847, 6.3444, 7.3172)
Luminance0.0634 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F254B #257F59
analogous
#7F2578 #7F254B #7F2C25
triadic
#7F254B #4B7F25 #254B7F
tetradic
#7F254B #787F25 #257F59 #2C257F
square
#7F254B #787F25 #257F59 #2C257F
split-complementary
#7F254B #257F2C #25787F
monochromatic
#200913 #50172F #7F254B #AE3367 #CD5286

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F254B#FFFFFF#000000##FFFFFF
##7F254B1.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)
#363C4C
Deuteranopia (green-blind)
#4F4E49
Tritanopia (blue-blind)
#8A1B35
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f254b;
/* rgb */ color: rgb(127, 37, 75);
/* oklch */ color: oklch(41.6% 0.128 358.4);
Tailwind
colors: {
  custom: {
    50: '#a8677d',
    500: '#7f254b',
    950: '#000000',
  },
}
SCSS
$custom: #7f254b;
$custom-light: #a8677d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f254b",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 75
  },
  "hsl": {
    "h": 334.667,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41564,
    "c": 0.12838,
    "h": 358.4
  },
  "luminance": 0.06343
}

Semantic roles & 50–950 ramp

primary
#7F254B
secondary
#4FB187
accent
#DE9F4A
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7F254B

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

Preview Lab → · Contrast checker → · Palette generator →

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