#7D167E#7D167E

#7D167E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.177 H 327.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7D167E
RGBrgb(125, 22, 126)
HSLhsl(299, 70%, 29%)
HSVhsv(299, 83%, 49%)
CMYKcmyk(0.8%, 82.5%, 0%, 50.6%)
CIE-LABlab(30.50, 53.91, -34.12)
CIE-LCHlch(30.50, 63.80, 327.67°)
OKLaboklab(42.45% 0.15 -0.0948)
OKLCHoklch(42.45% 0.177 327.7)
XYZxyz(12.5101, 6.4411, 20.3190)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D167E #177E16
analogous
#49167E #7D167E #7E164B
triadic
#7D167E #7E7D16 #167E7D
tetradic
#7D167E #7E4916 #177E16 #164B7E
square
#7D167E #7E4916 #177E16 #164B7E
split-complementary
#7D167E #4B7E16 #167E49
monochromatic
#1A051A #490D4A #7D167E #B11FB2 #DA33DB

Accessibility & contrast

On white

9.18
#7D167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D167E
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D167E#FFFFFF#000000##FFFFFF
##7D167E1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#344C7C
Tritanopia (blue-blind)
#81294B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d167e;
/* rgb */ color: rgb(125, 22, 126);
/* oklch */ color: oklch(42.4% 0.177 327.7);
Tailwind
colors: {
  custom: {
    50: '#a662a4',
    500: '#7d167e',
    950: '#000000',
  },
}
SCSS
$custom: #7d167e;
$custom-light: #a662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d167e",
  "rgb": {
    "r": 125,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 299.423,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.4245,
    "c": 0.17742,
    "h": 327.7
  },
  "luminance": 0.0644
}

Semantic roles & 50–950 ramp

primary
#7D167E
secondary
#3EB33D
accent
#ED3B3C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D167E

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

Preview Lab → · Contrast checker → · Palette generator →

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