#7D166F#7D166F

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

Color values

HEX#7D166F
RGBrgb(125, 22, 111)
HSLhsl(308, 70%, 29%)
HSVhsv(308, 82%, 49%)
CMYKcmyk(0%, 82.4%, 11.2%, 51%)
CIE-LABlab(29.62, 51.48, -25.99)
CIE-LCHlch(29.62, 57.67, 333.21°)
OKLaboklab(41.54% 0.1501 -0.0712)
OKLCHoklch(41.54% 0.166 334.6)
XYZxyz(11.6137, 6.0825, 15.5982)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D166F #167D24
analogous
#58167D #7D166F #7D163C
triadic
#7D166F #6F7D16 #166F7D
tetradic
#7D166F #7D5816 #167D24 #163C7D
square
#7D166F #7D5816 #167D24 #163C7D
split-complementary
#7D166F #3C7D16 #167D58
monochromatic
#1A0517 #490D41 #7D166F #B11F9D #DB32C4

Accessibility & contrast

On white

9.48
#7D166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7D166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D166F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D166F#FFFFFF#000000##FFFFFF
##7D166F1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C71
Deuteranopia (green-blind)
#3D4B6D
Tritanopia (blue-blind)
#832142
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d166f;
/* rgb */ color: rgb(125, 22, 111);
/* oklch */ color: oklch(41.5% 0.166 334.6);
Tailwind
colors: {
  custom: {
    50: '#a66198',
    500: '#7d166f',
    950: '#000000',
  },
}
SCSS
$custom: #7d166f;
$custom-light: #a66198;
$custom-dark: #000000;
JSON
{
  "hex": "#7d166f",
  "rgb": {
    "r": 125,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 308.155,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4154,
    "c": 0.16609,
    "h": 334.6
  },
  "luminance": 0.06081
}

Semantic roles & 50–950 ramp

primary
#7D166F
secondary
#3DB24D
accent
#ED533B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D166F

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

Preview Lab → · Contrast checker → · Palette generator →

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