#7D166E#7D166E

#7D166E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.165 H 335.1°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#7D166E
RGBrgb(125, 22, 110)
HSLhsl(309, 70%, 29%)
HSVhsv(309, 82%, 49%)
CMYKcmyk(0%, 82.4%, 12%, 51%)
CIE-LABlab(29.56, 51.32, -25.44)
CIE-LCHlch(29.56, 57.28, 333.63°)
OKLaboklab(41.48% 0.15 -0.0696)
OKLCHoklch(41.48% 0.165 335.1)
XYZxyz(11.5590, 6.0606, 15.3099)
Luminance0.0606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D166E #167D25
analogous
#59167D #7D166E #7D163B
triadic
#7D166E #6E7D16 #166E7D
tetradic
#7D166E #7D5916 #167D25 #163B7D
square
#7D166E #7D5916 #167D25 #163B7D
split-complementary
#7D166E #3B7D16 #167D59
monochromatic
#1A0517 #490D40 #7D166E #B11F9C #DB32C2

Accessibility & contrast

On white

9.49
#7D166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7D166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D166E
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D166E#FFFFFF#000000##FFFFFF
##7D166E1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153C70
Deuteranopia (green-blind)
#3D4B6C
Tritanopia (blue-blind)
#842042
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d166e;
/* rgb */ color: rgb(125, 22, 110);
/* oklch */ color: oklch(41.5% 0.165 335.1);
Tailwind
colors: {
  custom: {
    50: '#a66198',
    500: '#7d166e',
    950: '#000000',
  },
}
SCSS
$custom: #7d166e;
$custom-light: #a66198;
$custom-dark: #000000;
JSON
{
  "hex": "#7d166e",
  "rgb": {
    "r": 125,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 308.738,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41483,
    "c": 0.16537,
    "h": 335.1
  },
  "luminance": 0.0606
}

Semantic roles & 50–950 ramp

primary
#7D166E
secondary
#3DB24E
accent
#ED553B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D166E

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

Preview Lab → · Contrast checker → · Palette generator →

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