#7F256C#7F256C

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

Color values

HEX#7F256C
RGBrgb(127, 37, 108)
HSLhsl(313, 55%, 32%)
HSVhsv(313, 71%, 50%)
CMYKcmyk(0%, 70.9%, 15%, 50.2%)
CIE-LABlab(31.62, 46.41, -20.91)
CIE-LCHlch(31.62, 50.90, 335.74°)
OKLaboklab(43% 0.1367 -0.0567)
OKLCHoklch(43% 0.148 337.5)
XYZxyz(12.1210, 6.9190, 14.8816)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F256C #257F38
analogous
#65257F #7F256C #7F253F
triadic
#7F256C #6C7F25 #256C7F
tetradic
#7F256C #7F6525 #257F38 #253F7F
square
#7F256C #7F6525 #257F38 #253F7F
split-complementary
#7F256C #3F7F25 #257F65
monochromatic
#20091B #501744 #7F256C #AE3394 #CD52B3

Accessibility & contrast

On white

8.81
#7F256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F256C
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F256C#FFFFFF#000000##FFFFFF
##7F256C1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28426E
Deuteranopia (green-blind)
#454F6A
Tritanopia (blue-blind)
#862A45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f256c;
/* rgb */ color: rgb(127, 37, 108);
/* oklch */ color: oklch(43.0% 0.148 337.5);
Tailwind
colors: {
  custom: {
    50: '#a76896',
    500: '#7f256c',
    950: '#000000',
  },
}
SCSS
$custom: #7f256c;
$custom-light: #a76896;
$custom-dark: #000000;
JSON
{
  "hex": "#7f256c",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 312.667,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43002,
    "c": 0.14802,
    "h": 337.5
  },
  "luminance": 0.06918
}

Semantic roles & 50–950 ramp

primary
#7F256C
secondary
#4FB164
accent
#DE694A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F256C

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

Preview Lab → · Contrast checker → · Palette generator →

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