#7A167D#7A167D

#7A167D is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.175 H 326.8°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7A167D
RGBrgb(122, 22, 125)
HSLhsl(298, 70%, 29%)
HSVhsv(298, 82%, 49%)
CMYKcmyk(2.4%, 82.4%, 0%, 51%)
CIE-LABlab(29.89, 53.11, -34.49)
CIE-LCHlch(29.89, 63.33, 327.00°)
OKLaboklab(41.9% 0.1467 -0.0959)
OKLCHoklch(41.9% 0.175 326.8)
XYZxyz(12.0144, 6.1929, 19.9606)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A167D #197D16
analogous
#47167D #7A167D #7D164D
triadic
#7A167D #7D7A16 #167D7A
tetradic
#7A167D #7D4716 #197D16 #164D7D
square
#7A167D #7D4716 #197D16 #164D7D
split-complementary
#7A167D #4D7D16 #167D47
monochromatic
#19051A #470D49 #7A167D #AD1FB1 #D632DB

Accessibility & contrast

On white

9.38
#7A167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7A167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A167D
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A167D#FFFFFF#000000##FFFFFF
##7A167D1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#324B7B
Tritanopia (blue-blind)
#7E294A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a167d;
/* rgb */ color: rgb(122, 22, 125);
/* oklch */ color: oklch(41.9% 0.175 326.8);
Tailwind
colors: {
  custom: {
    50: '#a462a3',
    500: '#7a167d',
    950: '#000000',
  },
}
SCSS
$custom: #7a167d;
$custom-light: #a462a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a167d",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 298.252,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41897,
    "c": 0.17527,
    "h": 326.8
  },
  "luminance": 0.06192
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A167D

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

Preview Lab → · Contrast checker → · Palette generator →

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