#7C256B#7C256B

#7C256B is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.5% C 0.145 H 336.6°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7C256B
RGBrgb(124, 37, 107)
HSLhsl(312, 54%, 32%)
HSVhsv(312, 70%, 49%)
CMYKcmyk(0%, 70.2%, 13.7%, 51.4%)
CIE-LABlab(31.05, 45.43, -21.21)
CIE-LCHlch(31.05, 50.14, 334.97°)
OKLaboklab(42.47% 0.1333 -0.0576)
OKLCHoklch(42.47% 0.145 336.6)
XYZxyz(11.6278, 6.6708, 14.5823)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C256B #257C36
analogous
#62257C #7C256B #7C2540
triadic
#7C256B #6B7C25 #256B7C
tetradic
#7C256B #7C6225 #257C36 #25407C
square
#7C256B #7C6225 #257C36 #25407C
split-complementary
#7C256B #407C25 #257C62
monochromatic
#1E091A #4D1742 #7C256B #AB3394 #CB50B3

Accessibility & contrast

On white

9.00
#7C256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7C256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C256B
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C256B#FFFFFF#000000##FFFFFF
##7C256B1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27416D
Deuteranopia (green-blind)
#434E69
Tritanopia (blue-blind)
#832A44
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c256b;
/* rgb */ color: rgb(124, 37, 107);
/* oklch */ color: oklch(42.5% 0.145 336.6);
Tailwind
colors: {
  custom: {
    50: '#a56795',
    500: '#7c256b',
    950: '#000000',
  },
}
SCSS
$custom: #7c256b;
$custom-light: #a56795;
$custom-dark: #000000;
JSON
{
  "hex": "#7c256b",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 311.724,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42465,
    "c": 0.14523,
    "h": 336.6
  },
  "luminance": 0.0667
}

Semantic roles & 50–950 ramp

primary
#7C256B
secondary
#4FAE61
accent
#DD674A
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C256B

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

Preview Lab → · Contrast checker → · Palette generator →

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