#7F256B#7F256B

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

Color values

HEX#7F256B
RGBrgb(127, 37, 107)
HSLhsl(313, 55%, 32%)
HSVhsv(313, 71%, 50%)
CMYKcmyk(0%, 70.9%, 15.7%, 50.2%)
CIE-LABlab(31.57, 46.25, -20.35)
CIE-LCHlch(31.57, 50.53, 336.25°)
OKLaboklab(42.95% 0.1366 -0.0551)
OKLCHoklch(42.95% 0.147 338)
XYZxyz(12.0680, 6.8978, 14.6029)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F256B #257F39
analogous
#66257F #7F256B #7F253E
triadic
#7F256B #6B7F25 #256B7F
tetradic
#7F256B #7F6625 #257F39 #253E7F
square
#7F256B #7F6625 #257F39 #253E7F
split-complementary
#7F256B #3E7F25 #257F66
monochromatic
#20091B #501743 #7F256B #AE3393 #CD52B1

Accessibility & contrast

On white

8.83
#7F256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F256B
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F256B#FFFFFF#000000##FFFFFF
##7F256B1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28416D
Deuteranopia (green-blind)
#454F69
Tritanopia (blue-blind)
#862944
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f256b;
/* rgb */ color: rgb(127, 37, 107);
/* oklch */ color: oklch(43.0% 0.147 338.0);
Tailwind
colors: {
  custom: {
    50: '#a76895',
    500: '#7f256b',
    950: '#000000',
  },
}
SCSS
$custom: #7f256b;
$custom-light: #a76895;
$custom-dark: #000000;
JSON
{
  "hex": "#7f256b",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 313.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42951,
    "c": 0.14728,
    "h": 338
  },
  "luminance": 0.06897
}

Semantic roles & 50–950 ramp

primary
#7F256B
secondary
#4FB165
accent
#DE6B4A
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F256B

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

Preview Lab → · Contrast checker → · Palette generator →

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