#7F167B#7F167B

#7F167B is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.176 H 329.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#7F167B
RGBrgb(127, 22, 123)
HSLhsl(302, 70%, 29%)
HSVhsv(302, 83%, 50%)
CMYKcmyk(0%, 82.7%, 3.1%, 50.2%)
CIE-LABlab(30.68, 53.83, -31.92)
CIE-LCHlch(30.68, 62.58, 329.34°)
OKLaboklab(42.59% 0.1523 -0.0883)
OKLCHoklch(42.59% 0.176 329.9)
XYZxyz(12.6144, 6.5169, 19.3286)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F167B #167F1A
analogous
#4F167F #7F167B #7F1647
triadic
#7F167B #7B7F16 #167B7F
tetradic
#7F167B #7F4F16 #167F1A #16477F
square
#7F167B #7F4F16 #167F1A #16477F
split-complementary
#7F167B #477F16 #167F4F
monochromatic
#1A0519 #4B0D48 #7F167B #B31FAE #DC34D5

Accessibility & contrast

On white

9.12
#7F167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F167B
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F167B#FFFFFF#000000##FFFFFF
##7F167B1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7E
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#842749
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f167b;
/* rgb */ color: rgb(127, 22, 123);
/* oklch */ color: oklch(42.6% 0.176 329.9);
Tailwind
colors: {
  custom: {
    50: '#a862a1',
    500: '#7f167b',
    950: '#000000',
  },
}
SCSS
$custom: #7f167b;
$custom-light: #a862a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f167b",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 302.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42589,
    "c": 0.17605,
    "h": 329.9
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#7F167B
secondary
#3DB442
accent
#ED413B
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F167B

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

Preview Lab → · Contrast checker → · Palette generator →

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