#7F167F#7F167F

#7F167F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.179 H 328.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7F167F
RGBrgb(127, 22, 127)
HSLhsl(300, 70%, 29%)
HSVhsv(300, 83%, 50%)
CMYKcmyk(0%, 82.7%, 0%, 50.2%)
CIE-LABlab(30.92, 54.50, -34.05)
CIE-LCHlch(30.92, 64.26, 328.00°)
OKLaboklab(42.84% 0.1522 -0.0945)
OKLCHoklch(42.84% 0.179 328.2)
XYZxyz(12.8699, 6.6191, 20.6743)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F167F #167F16
analogous
#4B167F #7F167F #7F164B
triadic
#7F167F #7F7F16 #167F7F
tetradic
#7F167F #7F4B16 #167F16 #164B7F
square
#7F167F #7F4B16 #167F16 #164B7F
split-complementary
#7F167F #4B7F16 #167F4B
monochromatic
#1A051A #4B0D4B #7F167F #B31FB3 #DC34DC

Accessibility & contrast

On white

9.04
#7F167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F167F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F167F#FFFFFF#000000##FFFFFF
##7F167F1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#364D7D
Tritanopia (blue-blind)
#83294B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f167f;
/* rgb */ color: rgb(127, 22, 127);
/* oklch */ color: oklch(42.8% 0.179 328.2);
Tailwind
colors: {
  custom: {
    50: '#a863a4',
    500: '#7f167f',
    950: '#000000',
  },
}
SCSS
$custom: #7f167f;
$custom-light: #a863a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f167f",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 300,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42839,
    "c": 0.17913,
    "h": 328.2
  },
  "luminance": 0.06618
}

Semantic roles & 50–950 ramp

primary
#7F167F
secondary
#3DB43D
accent
#ED3B3B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F167F

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

Preview Lab → · Contrast checker → · Palette generator →

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