#7A167E#7A167E

#7A167E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.176 H 326.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#7A167E
RGBrgb(122, 22, 126)
HSLhsl(298, 70%, 29%)
HSVhsv(298, 83%, 49%)
CMYKcmyk(3.2%, 82.5%, 0%, 50.6%)
CIE-LABlab(29.96, 53.29, -35.02)
CIE-LCHlch(29.96, 63.76, 326.69°)
OKLaboklab(41.96% 0.1466 -0.0975)
OKLCHoklch(41.96% 0.176 326.4)
XYZxyz(12.0786, 6.2186, 20.2987)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A167E #1A7E16
analogous
#46167E #7A167E #7E164E
triadic
#7A167E #7E7A16 #167E7A
tetradic
#7A167E #7E4616 #1A7E16 #164E7E
square
#7A167E #7E4616 #1A7E16 #164E7E
split-complementary
#7A167E #4E7E16 #167E46
monochromatic
#19051A #480D4A #7A167E #AC1FB2 #D533DB

Accessibility & contrast

On white

9.36
#7A167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A167E
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A167E#FFFFFF#000000##FFFFFF
##7A167E1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#314B7C
Tritanopia (blue-blind)
#7D2A4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a167e;
/* rgb */ color: rgb(122, 22, 126);
/* oklch */ color: oklch(42.0% 0.176 326.4);
Tailwind
colors: {
  custom: {
    50: '#a462a4',
    500: '#7a167e',
    950: '#000000',
  },
}
SCSS
$custom: #7a167e;
$custom-light: #a462a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a167e",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 297.692,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41963,
    "c": 0.17606,
    "h": 326.4
  },
  "luminance": 0.06218
}

Semantic roles & 50–950 ramp

primary
#7A167E
secondary
#41B33D
accent
#ED3B42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A167E

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

Preview Lab → · Contrast checker → · Palette generator →

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