#7D167C#7D167C

#7D167C is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.176 H 328.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7D167C
RGBrgb(125, 22, 124)
HSLhsl(301, 70%, 29%)
HSVhsv(301, 82%, 49%)
CMYKcmyk(0%, 82.4%, 0.8%, 51%)
CIE-LABlab(30.38, 53.57, -33.06)
CIE-LCHlch(30.38, 62.95, 328.32°)
OKLaboklab(42.32% 0.1501 -0.0917)
OKLCHoklch(42.32% 0.176 328.6)
XYZxyz(12.3823, 6.3900, 19.6461)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D167C #167D17
analogous
#4B167D #7D167C #7D1649
triadic
#7D167C #7C7D16 #167C7D
tetradic
#7D167C #7D4B16 #167D17 #16497D
square
#7D167C #7D4B16 #167D17 #16497D
split-complementary
#7D167C #497D16 #167D4B
monochromatic
#1A051A #490D48 #7D167C #B11FB0 #DB32D9

Accessibility & contrast

On white

9.22
#7D167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7D167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D167C
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D167C#FFFFFF#000000##FFFFFF
##7D167C1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#364C7A
Tritanopia (blue-blind)
#81284A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d167c;
/* rgb */ color: rgb(125, 22, 124);
/* oklch */ color: oklch(42.3% 0.176 328.6);
Tailwind
colors: {
  custom: {
    50: '#a662a2',
    500: '#7d167c',
    950: '#000000',
  },
}
SCSS
$custom: #7d167c;
$custom-light: #a662a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d167c",
  "rgb": {
    "r": 125,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 300.583,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42323,
    "c": 0.17587,
    "h": 328.6
  },
  "luminance": 0.06389
}

Semantic roles & 50–950 ramp

primary
#7D167C
secondary
#3DB23E
accent
#ED3D3B
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D167C

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

Preview Lab → · Contrast checker → · Palette generator →

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