#7C256C#7C256C

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

Color values

HEX#7C256C
RGBrgb(124, 37, 108)
HSLhsl(311, 54%, 32%)
HSVhsv(311, 70%, 49%)
CMYKcmyk(0%, 70.2%, 12.9%, 51.4%)
CIE-LABlab(31.09, 45.59, -21.78)
CIE-LCHlch(31.09, 50.53, 334.47°)
OKLaboklab(42.52% 0.1334 -0.0593)
OKLCHoklch(42.52% 0.146 336.1)
XYZxyz(11.6807, 6.6919, 14.8609)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C256C #257C35
analogous
#61257C #7C256C #7C2541
triadic
#7C256C #6C7C25 #256C7C
tetradic
#7C256C #7C6125 #257C35 #25417C
square
#7C256C #7C6125 #257C35 #25417C
split-complementary
#7C256C #417C25 #257C61
monochromatic
#1E091A #4D1743 #7C256C #AB3395 #CB50B4

Accessibility & contrast

On white

8.98
#7C256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C256C
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C256C#FFFFFF#000000##FFFFFF
##7C256C1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26416E
Deuteranopia (green-blind)
#434E6A
Tritanopia (blue-blind)
#822A45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c256c;
/* rgb */ color: rgb(124, 37, 108);
/* oklch */ color: oklch(42.5% 0.146 336.1);
Tailwind
colors: {
  custom: {
    50: '#a56796',
    500: '#7c256c',
    950: '#000000',
  },
}
SCSS
$custom: #7c256c;
$custom-light: #a56796;
$custom-dark: #000000;
JSON
{
  "hex": "#7c256c",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 311.034,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42518,
    "c": 0.14601,
    "h": 336.1
  },
  "luminance": 0.06691
}

Semantic roles & 50–950 ramp

primary
#7C256C
secondary
#4FAE60
accent
#DD654A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C256C

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

Preview Lab → · Contrast checker → · Palette generator →

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