#7C256D#7C256D

#7C256D is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.6% C 0.147 H 335.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7C256D
RGBrgb(124, 37, 109)
HSLhsl(310, 54%, 32%)
HSVhsv(310, 70%, 49%)
CMYKcmyk(0%, 70.2%, 12.1%, 51.4%)
CIE-LABlab(31.15, 45.76, -22.34)
CIE-LCHlch(31.15, 50.92, 333.98°)
OKLaboklab(42.57% 0.1336 -0.0609)
OKLCHoklch(42.57% 0.147 335.5)
XYZxyz(11.7342, 6.7133, 15.1428)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C256D #257C34
analogous
#60257C #7C256D #7C2542
triadic
#7C256D #6D7C25 #256D7C
tetradic
#7C256D #7C6025 #257C34 #25427C
square
#7C256D #7C6025 #257C34 #25427C
split-complementary
#7C256D #427C25 #257C60
monochromatic
#1E091A #4D1744 #7C256D #AB3396 #CB50B6

Accessibility & contrast

On white

8.97
#7C256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7C256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C256D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C256D#FFFFFF#000000##FFFFFF
##7C256D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25416F
Deuteranopia (green-blind)
#424E6B
Tritanopia (blue-blind)
#822B45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c256d;
/* rgb */ color: rgb(124, 37, 109);
/* oklch */ color: oklch(42.6% 0.147 335.5);
Tailwind
colors: {
  custom: {
    50: '#a56797',
    500: '#7c256d',
    950: '#000000',
  },
}
SCSS
$custom: #7c256d;
$custom-light: #a56797;
$custom-dark: #000000;
JSON
{
  "hex": "#7c256d",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 310.345,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4257,
    "c": 0.14678,
    "h": 335.5
  },
  "luminance": 0.06712
}

Semantic roles & 50–950 ramp

primary
#7C256D
secondary
#4FAE5F
accent
#DD644A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C256D

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

Preview Lab → · Contrast checker → · Palette generator →

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