#7C1168#7C1168

#7C1168 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.7% C 0.165 H 337.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#7C1168
RGBrgb(124, 17, 104)
HSLhsl(311, 76%, 28%)
HSVhsv(311, 86%, 49%)
CMYKcmyk(0%, 86.3%, 16.1%, 51.4%)
CIE-LABlab(28.61, 51.47, -23.09)
CIE-LCHlch(28.61, 56.42, 335.84°)
OKLaboklab(40.66% 0.1524 -0.0629)
OKLCHoklch(40.66% 0.165 337.6)
XYZxyz(11.0116, 5.6866, 13.6117)
Luminance0.0568 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1168 #117C25
analogous
#5B117C #7C1168 #7C1132
triadic
#7C1168 #687C11 #11687C
tetradic
#7C1168 #7C5B11 #117C25 #11327C
square
#7C1168 #7C5B11 #117C25 #11327C
split-complementary
#7C1168 #327C11 #117C5B
monochromatic
#1B0417 #460A3B #7C1168 #B21895 #E126BE

Accessibility & contrast

On white

9.83
#7C1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7C1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1168
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1168#FFFFFF#000000##FFFFFF
##7C11681.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16396A
Deuteranopia (green-blind)
#3D4966
Tritanopia (blue-blind)
#83193D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7c1168;
/* rgb */ color: rgb(124, 17, 104);
/* oklch */ color: oklch(40.7% 0.165 337.6);
Tailwind
colors: {
  custom: {
    50: '#a65f93',
    500: '#7c1168',
    950: '#000000',
  },
}
SCSS
$custom: #7c1168;
$custom-light: #a65f93;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1168",
  "rgb": {
    "r": 124,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 311.215,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40657,
    "c": 0.16489,
    "h": 337.6
  },
  "luminance": 0.05685
}

Semantic roles & 50–950 ramp

primary
#7C1168
secondary
#37B24E
accent
#F25935
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7C1168

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

Preview Lab → · Contrast checker → · Palette generator →

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