#7D167F#7D167F

#7D167F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.178 H 327.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7D167F
RGBrgb(125, 22, 127)
HSLhsl(299, 70%, 29%)
HSVhsv(299, 83%, 50%)
CMYKcmyk(1.6%, 82.7%, 0%, 50.2%)
CIE-LABlab(30.56, 54.08, -34.65)
CIE-LCHlch(30.56, 64.23, 327.35°)
OKLaboklab(42.51% 0.15 -0.0963)
OKLCHoklch(42.51% 0.178 327.3)
XYZxyz(12.5749, 6.4670, 20.6605)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D167F #187F16
analogous
#49167F #7D167F #7F164D
triadic
#7D167F #7F7D16 #167F7D
tetradic
#7D167F #7F4916 #187F16 #164D7F
square
#7D167F #7F4916 #187F16 #164D7F
split-complementary
#7D167F #4D7F16 #167F49
monochromatic
#1A051A #4A0D4B #7D167F #B01FB3 #D934DC

Accessibility & contrast

On white

9.16
#7D167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D167F
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D167F#FFFFFF#000000##FFFFFF
##7D167F1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#344C7D
Tritanopia (blue-blind)
#812A4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d167f;
/* rgb */ color: rgb(125, 22, 127);
/* oklch */ color: oklch(42.5% 0.178 327.3);
Tailwind
colors: {
  custom: {
    50: '#a662a4',
    500: '#7d167f',
    950: '#000000',
  },
}
SCSS
$custom: #7d167f;
$custom-light: #a662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d167f",
  "rgb": {
    "r": 125,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 298.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42514,
    "c": 0.17821,
    "h": 327.3
  },
  "luminance": 0.06466
}

Semantic roles & 50–950 ramp

primary
#7D167F
secondary
#3FB43D
accent
#ED3B3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D167F

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

Preview Lab → · Contrast checker → · Palette generator →

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