#7F256E#7F256E

#7F256E is a dark, vivid pink. Relative luminance 0.070; OKLCH L 43.1% C 0.150 H 336.4°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7F256E
RGBrgb(127, 37, 110)
HSLhsl(311, 55%, 32%)
HSVhsv(311, 71%, 50%)
CMYKcmyk(0%, 70.9%, 13.4%, 50.2%)
CIE-LABlab(31.72, 46.72, -22.04)
CIE-LCHlch(31.72, 51.66, 334.75°)
OKLaboklab(43.11% 0.137 -0.0599)
OKLCHoklch(43.11% 0.15 336.4)
XYZxyz(12.2286, 6.9620, 15.4486)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F256E #257F36
analogous
#63257F #7F256E #7F2541
triadic
#7F256E #6E7F25 #256E7F
tetradic
#7F256E #7F6325 #257F36 #25417F
square
#7F256E #7F6325 #257F36 #25417F
split-complementary
#7F256E #417F25 #257F63
monochromatic
#20091C #501745 #7F256E #AE3397 #CD52B5

Accessibility & contrast

On white

8.78
#7F256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F256E
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F256E#FFFFFF#000000##FFFFFF
##7F256E1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274270
Deuteranopia (green-blind)
#44506C
Tritanopia (blue-blind)
#862A46
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f256e;
/* rgb */ color: rgb(127, 37, 110);
/* oklch */ color: oklch(43.1% 0.150 336.4);
Tailwind
colors: {
  custom: {
    50: '#a76898',
    500: '#7f256e',
    950: '#000000',
  },
}
SCSS
$custom: #7f256e;
$custom-light: #a76898;
$custom-dark: #000000;
JSON
{
  "hex": "#7f256e",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 311.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43106,
    "c": 0.14953,
    "h": 336.4
  },
  "luminance": 0.06961
}

Semantic roles & 50–950 ramp

primary
#7F256E
secondary
#4FB162
accent
#DE664A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7F256E

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

Preview Lab → · Contrast checker → · Palette generator →

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