#7D2168#7D2168

#7D2168 is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.1% C 0.149 H 338.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7D2168
RGBrgb(125, 33, 104)
HSLhsl(314, 58%, 31%)
HSVhsv(314, 74%, 49%)
CMYKcmyk(0%, 73.6%, 16.8%, 51%)
CIE-LABlab(30.52, 46.80, -20.10)
CIE-LCHlch(30.52, 50.93, 336.76°)
OKLaboklab(42.07% 0.1386 -0.0544)
OKLCHoklch(42.07% 0.149 338.6)
XYZxyz(11.5002, 6.4482, 13.7330)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2168 #217D36
analogous
#64217D #7D2168 #7D213A
triadic
#7D2168 #687D21 #21687D
tetradic
#7D2168 #7D6421 #217D36 #213A7D
square
#7D2168 #7D6421 #217D36 #213A7D
split-complementary
#7D2168 #3A7D21 #217D64
monochromatic
#1C0717 #4D1440 #7D2168 #AD2E90 #CF49B1

Accessibility & contrast

On white

9.17
#7D2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7D2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2168
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2168#FFFFFF#000000##FFFFFF
##7D21681.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253F6A
Deuteranopia (green-blind)
#434D66
Tritanopia (blue-blind)
#842541
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d2168;
/* rgb */ color: rgb(125, 33, 104);
/* oklch */ color: oklch(42.1% 0.149 338.6);
Tailwind
colors: {
  custom: {
    50: '#a66593',
    500: '#7d2168',
    950: '#000000',
  },
}
SCSS
$custom: #7d2168;
$custom-light: #a66593;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2168",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 313.696,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42067,
    "c": 0.14894,
    "h": 338.6
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#7D2168
secondary
#4AB061
accent
#E16A46
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D2168

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

Preview Lab → · Contrast checker → · Palette generator →

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