#7F167C#7F167C

#7F167C is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.177 H 329.5°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7F167C
RGBrgb(127, 22, 124)
HSLhsl(302, 70%, 29%)
HSVhsv(302, 83%, 50%)
CMYKcmyk(0%, 82.7%, 2.4%, 50.2%)
CIE-LABlab(30.74, 54.00, -32.45)
CIE-LCHlch(30.74, 63.00, 328.99°)
OKLaboklab(42.65% 0.1523 -0.0899)
OKLCHoklch(42.65% 0.177 329.5)
XYZxyz(12.6773, 6.5421, 19.6599)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F167C #167F19
analogous
#4E167F #7F167C #7F1648
triadic
#7F167C #7C7F16 #167C7F
tetradic
#7F167C #7F4E16 #167F19 #16487F
square
#7F167C #7F4E16 #167F19 #16487F
split-complementary
#7F167C #487F16 #167F4E
monochromatic
#1A0519 #4B0D49 #7F167C #B31FAF #DC34D7

Accessibility & contrast

On white

9.10
#7F167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F167C
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F167C#FFFFFF#000000##FFFFFF
##7F167C1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#384D7A
Tritanopia (blue-blind)
#84274A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f167c;
/* rgb */ color: rgb(127, 22, 124);
/* oklch */ color: oklch(42.7% 0.177 329.5);
Tailwind
colors: {
  custom: {
    50: '#a862a2',
    500: '#7f167c',
    950: '#000000',
  },
}
SCSS
$custom: #7f167c;
$custom-light: #a862a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f167c",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 301.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42651,
    "c": 0.17682,
    "h": 329.5
  },
  "luminance": 0.06541
}

Semantic roles & 50–950 ramp

primary
#7F167C
secondary
#3DB440
accent
#ED403B
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F167C

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

Preview Lab → · Contrast checker → · Palette generator →

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