#7C167F#7C167F

#7C167F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.178 H 326.8°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7C167F
RGBrgb(124, 22, 127)
HSLhsl(298, 70%, 29%)
HSVhsv(298, 83%, 50%)
CMYKcmyk(2.4%, 82.7%, 0%, 50.2%)
CIE-LABlab(30.38, 53.87, -34.95)
CIE-LCHlch(30.38, 64.22, 327.03°)
OKLaboklab(42.35% 0.1488 -0.0972)
OKLCHoklch(42.35% 0.178 326.8)
XYZxyz(12.4296, 6.3921, 20.6537)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C167F #197F16
analogous
#48167F #7C167F #7F164E
triadic
#7C167F #7F7C16 #167F7C
tetradic
#7C167F #7F4816 #197F16 #164E7F
square
#7C167F #7F4816 #197F16 #164E7F
split-complementary
#7C167F #4E7F16 #167F48
monochromatic
#19051A #490D4B #7C167F #AF1FB3 #D734DC

Accessibility & contrast

On white

9.22
#7C167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7C167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C167F
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C167F#FFFFFF#000000##FFFFFF
##7C167F1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#334C7D
Tritanopia (blue-blind)
#802A4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c167f;
/* rgb */ color: rgb(124, 22, 127);
/* oklch */ color: oklch(42.4% 0.178 326.8);
Tailwind
colors: {
  custom: {
    50: '#a662a4',
    500: '#7c167f',
    950: '#000000',
  },
}
SCSS
$custom: #7c167f;
$custom-light: #a662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c167f",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 298.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42352,
    "c": 0.17775,
    "h": 326.8
  },
  "luminance": 0.06391
}

Semantic roles & 50–950 ramp

primary
#7C167F
secondary
#40B43D
accent
#ED3B40
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C167F

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

Preview Lab → · Contrast checker → · Palette generator →

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