#7F167A#7F167A

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

Color values

HEX#7F167A
RGBrgb(127, 22, 122)
HSLhsl(303, 70%, 29%)
HSVhsv(303, 83%, 50%)
CMYKcmyk(0%, 82.7%, 3.9%, 50.2%)
CIE-LABlab(30.62, 53.67, -31.38)
CIE-LCHlch(30.62, 62.17, 329.68°)
OKLaboklab(42.53% 0.1523 -0.0867)
OKLCHoklch(42.53% 0.175 330.3)
XYZxyz(12.5521, 6.4920, 19.0006)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F167A #167F1B
analogous
#50167F #7F167A #7F1646
triadic
#7F167A #7A7F16 #167A7F
tetradic
#7F167A #7F5016 #167F1B #16467F
square
#7F167A #7F5016 #167F1B #16467F
split-complementary
#7F167A #467F16 #167F50
monochromatic
#1A0519 #4B0D48 #7F167A #B31FAC #DC34D4

Accessibility & contrast

On white

9.14
#7F167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7F167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F167A
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F167A#FFFFFF#000000##FFFFFF
##7F167A1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033F7D
Deuteranopia (green-blind)
#394D78
Tritanopia (blue-blind)
#842648
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f167a;
/* rgb */ color: rgb(127, 22, 122);
/* oklch */ color: oklch(42.5% 0.175 330.3);
Tailwind
colors: {
  custom: {
    50: '#a862a1',
    500: '#7f167a',
    950: '#000000',
  },
}
SCSS
$custom: #7f167a;
$custom-light: #a862a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f167a",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 302.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42527,
    "c": 0.17529,
    "h": 330.3
  },
  "luminance": 0.06491
}

Semantic roles & 50–950 ramp

primary
#7F167A
secondary
#3DB443
accent
#ED433B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F167A

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

Preview Lab → · Contrast checker → · Palette generator →

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