#7F167D#7F167D

#7F167D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.178 H 329.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7F167D
RGBrgb(127, 22, 125)
HSLhsl(301, 70%, 29%)
HSVhsv(301, 83%, 50%)
CMYKcmyk(0%, 82.7%, 1.6%, 50.2%)
CIE-LABlab(30.80, 54.16, -32.99)
CIE-LCHlch(30.80, 63.42, 328.66°)
OKLaboklab(42.71% 0.1523 -0.0914)
OKLCHoklch(42.71% 0.178 329)
XYZxyz(12.7409, 6.5675, 19.9947)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F167D #167F18
analogous
#4D167F #7F167D #7F1649
triadic
#7F167D #7D7F16 #167D7F
tetradic
#7F167D #7F4D16 #167F18 #16497F
square
#7F167D #7F4D16 #167F18 #16497F
split-complementary
#7F167D #497F16 #167F4D
monochromatic
#1A051A #4B0D4A #7F167D #B31FB0 #DC34D9

Accessibility & contrast

On white

9.08
#7F167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7F167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F167D
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F167D#FFFFFF#000000##FFFFFF
##7F167D1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#84284A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f167d;
/* rgb */ color: rgb(127, 22, 125);
/* oklch */ color: oklch(42.7% 0.178 329.0);
Tailwind
colors: {
  custom: {
    50: '#a862a3',
    500: '#7f167d',
    950: '#000000',
  },
}
SCSS
$custom: #7f167d;
$custom-light: #a862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f167d",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 301.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42713,
    "c": 0.17758,
    "h": 329
  },
  "luminance": 0.06567
}

Semantic roles & 50–950 ramp

primary
#7F167D
secondary
#3DB43F
accent
#ED3E3B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F167D

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

Preview Lab → · Contrast checker → · Palette generator →

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