#7F167E#7F167E

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

Color values

HEX#7F167E
RGBrgb(127, 22, 126)
HSLhsl(301, 70%, 29%)
HSVhsv(301, 83%, 50%)
CMYKcmyk(0%, 82.7%, 0.8%, 50.2%)
CIE-LABlab(30.86, 54.33, -33.52)
CIE-LCHlch(30.86, 63.84, 328.33°)
OKLaboklab(42.78% 0.1522 -0.093)
OKLCHoklch(42.78% 0.178 328.6)
XYZxyz(12.8051, 6.5932, 20.3328)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F167E #167F17
analogous
#4C167F #7F167E #7F164A
triadic
#7F167E #7E7F16 #167E7F
tetradic
#7F167E #7F4C16 #167F17 #164A7F
square
#7F167E #7F4C16 #167F17 #164A7F
split-complementary
#7F167E #4A7F16 #167F4C
monochromatic
#1A051A #4B0D4A #7F167E #B31FB2 #DC34DA

Accessibility & contrast

On white

9.06
#7F167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F167E
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F167E#FFFFFF#000000##FFFFFF
##7F167E1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#83284B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f167e;
/* rgb */ color: rgb(127, 22, 126);
/* oklch */ color: oklch(42.8% 0.178 328.6);
Tailwind
colors: {
  custom: {
    50: '#a862a4',
    500: '#7f167e',
    950: '#000000',
  },
}
SCSS
$custom: #7f167e;
$custom-light: #a862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f167e",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 300.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42776,
    "c": 0.17835,
    "h": 328.6
  },
  "luminance": 0.06592
}

Semantic roles & 50–950 ramp

primary
#7F167E
secondary
#3DB43E
accent
#ED3C3B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F167E

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

Preview Lab → · Contrast checker → · Palette generator →

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