#7D166C#7D166C

#7D166C is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.164 H 336.1°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#7D166C
RGBrgb(125, 22, 108)
HSLhsl(310, 70%, 29%)
HSVhsv(310, 82%, 49%)
CMYKcmyk(0%, 82.4%, 13.6%, 51%)
CIE-LABlab(29.46, 51.02, -24.33)
CIE-LCHlch(29.46, 56.52, 334.51°)
OKLaboklab(41.37% 0.1499 -0.0664)
OKLCHoklch(41.37% 0.164 336.1)
XYZxyz(11.4513, 6.0176, 14.7429)
Luminance0.0602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D166C #167D27
analogous
#5B167D #7D166C #7D1639
triadic
#7D166C #6C7D16 #166C7D
tetradic
#7D166C #7D5B16 #167D27 #16397D
square
#7D166C #7D5B16 #167D27 #16397D
split-complementary
#7D166C #397D16 #167D5B
monochromatic
#1A0516 #490D3F #7D166C #B11F99 #DB32BF

Accessibility & contrast

On white

9.53
#7D166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7D166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D166C
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D166C#FFFFFF#000000##FFFFFF
##7D166C1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183C6E
Deuteranopia (green-blind)
#3E4B6A
Tritanopia (blue-blind)
#841F41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d166c;
/* rgb */ color: rgb(125, 22, 108);
/* oklch */ color: oklch(41.4% 0.164 336.1);
Tailwind
colors: {
  custom: {
    50: '#a66196',
    500: '#7d166c',
    950: '#000000',
  },
}
SCSS
$custom: #7d166c;
$custom-light: #a66196;
$custom-dark: #000000;
JSON
{
  "hex": "#7d166c",
  "rgb": {
    "r": 125,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 309.903,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4137,
    "c": 0.16393,
    "h": 336.1
  },
  "luminance": 0.06017
}

Semantic roles & 50–950 ramp

primary
#7D166C
secondary
#3DB250
accent
#ED583B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D166C

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

Preview Lab → · Contrast checker → · Palette generator →

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