#7F256D#7F256D

#7F256D is a dark, vivid pink. Relative luminance 0.069; OKLCH L 43.1% C 0.149 H 336.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7F256D
RGBrgb(127, 37, 109)
HSLhsl(312, 55%, 32%)
HSVhsv(312, 71%, 50%)
CMYKcmyk(0%, 70.9%, 14.2%, 50.2%)
CIE-LABlab(31.67, 46.56, -21.48)
CIE-LCHlch(31.67, 51.28, 335.24°)
OKLaboklab(43.05% 0.1369 -0.0583)
OKLCHoklch(43.05% 0.149 336.9)
XYZxyz(12.1745, 6.9404, 15.1635)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F256D #257F37
analogous
#64257F #7F256D #7F2540
triadic
#7F256D #6D7F25 #256D7F
tetradic
#7F256D #7F6425 #257F37 #25407F
square
#7F256D #7F6425 #257F37 #25407F
split-complementary
#7F256D #407F25 #257F64
monochromatic
#20091C #501744 #7F256D #AE3396 #CD52B4

Accessibility & contrast

On white

8.79
#7F256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F256D
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F256D#FFFFFF#000000##FFFFFF
##7F256D1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27426F
Deuteranopia (green-blind)
#454F6B
Tritanopia (blue-blind)
#862A45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f256d;
/* rgb */ color: rgb(127, 37, 109);
/* oklch */ color: oklch(43.1% 0.149 336.9);
Tailwind
colors: {
  custom: {
    50: '#a76897',
    500: '#7f256d',
    950: '#000000',
  },
}
SCSS
$custom: #7f256d;
$custom-light: #a76897;
$custom-dark: #000000;
JSON
{
  "hex": "#7f256d",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 312,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43053,
    "c": 0.14877,
    "h": 336.9
  },
  "luminance": 0.06939
}

Semantic roles & 50–950 ramp

primary
#7F256D
secondary
#4FB163
accent
#DE674A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7F256D

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

Preview Lab → · Contrast checker → · Palette generator →

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