#7F256A#7F256A

#7F256A is a dark, vivid pink. Relative luminance 0.069; OKLCH L 42.9% C 0.147 H 338.6°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7F256A
RGBrgb(127, 37, 106)
HSLhsl(314, 55%, 32%)
HSVhsv(314, 71%, 50%)
CMYKcmyk(0%, 70.9%, 16.5%, 50.2%)
CIE-LABlab(31.52, 46.09, -19.79)
CIE-LCHlch(31.52, 50.16, 336.77°)
OKLaboklab(42.9% 0.1364 -0.0535)
OKLCHoklch(42.9% 0.147 338.6)
XYZxyz(12.0157, 6.8769, 14.3274)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F256A #257F3A
analogous
#67257F #7F256A #7F253D
triadic
#7F256A #6A7F25 #256A7F
tetradic
#7F256A #7F6725 #257F3A #253D7F
square
#7F256A #7F6725 #257F3A #253D7F
split-complementary
#7F256A #3D7F25 #257F67
monochromatic
#20091B #501742 #7F256A #AE3392 #CD52B0

Accessibility & contrast

On white

8.84
#7F256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7F256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F256A
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F256A#FFFFFF#000000##FFFFFF
##7F256A1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29416C
Deuteranopia (green-blind)
#464F68
Tritanopia (blue-blind)
#862944
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f256a;
/* rgb */ color: rgb(127, 37, 106);
/* oklch */ color: oklch(42.9% 0.147 338.6);
Tailwind
colors: {
  custom: {
    50: '#a76895',
    500: '#7f256a',
    950: '#000000',
  },
}
SCSS
$custom: #7f256a;
$custom-light: #a76895;
$custom-dark: #000000;
JSON
{
  "hex": "#7f256a",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 314,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.429,
    "c": 0.14653,
    "h": 338.6
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#7F256A
secondary
#4FB166
accent
#DE6C4A
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F256A

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

Preview Lab → · Contrast checker → · Palette generator →

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