#7D168F#7D168F

#7D168F is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.6% C 0.191 H 320.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7D168F
RGBrgb(125, 22, 143)
HSLhsl(291, 73%, 32%)
HSVhsv(291, 85%, 56%)
CMYKcmyk(12.6%, 84.6%, 0%, 43.9%)
CIE-LABlab(31.62, 56.92, -42.92)
CIE-LCHlch(31.62, 71.28, 322.98°)
OKLaboklab(43.6% 0.1482 -0.1205)
OKLCHoklch(43.6% 0.191 320.9)
XYZxyz(13.7017, 6.9177, 26.5948)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D168F #288F16
analogous
#40168F #7D168F #8F1665
triadic
#7D168F #8F7D16 #168F7D
tetradic
#7D168F #8F4016 #288F16 #16658F
square
#7D168F #8F4016 #288F16 #16658F
split-complementary
#7D168F #658F16 #168F40
monochromatic
#200625 #4F0E5A #7D168F #AB1EC4 #C93EE1

Accessibility & contrast

On white

8.81
#7D168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7D168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D168F
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D168F#FFFFFF#000000##FFFFFF
##7D168F1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#264E8C
Tritanopia (blue-blind)
#7E3255
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d168f;
/* rgb */ color: rgb(125, 22, 143);
/* oklch */ color: oklch(43.6% 0.191 320.9);
Tailwind
colors: {
  custom: {
    50: '#a763b0',
    500: '#7d168f',
    950: '#000000',
  },
}
SCSS
$custom: #7d168f;
$custom-light: #a763b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d168f",
  "rgb": {
    "r": 125,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 291.074,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43598,
    "c": 0.19098,
    "h": 320.9
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#7D168F
secondary
#53C13F
accent
#F03853
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7D168F

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

Preview Lab → · Contrast checker → · Palette generator →

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