#7A167A#7A167A

#7A167A is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.173 H 328.1°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#7A167A
RGBrgb(122, 22, 122)
HSLhsl(300, 69%, 28%)
HSVhsv(300, 82%, 48%)
CMYKcmyk(0%, 82%, 0%, 52.2%)
CIE-LABlab(29.71, 52.60, -32.89)
CIE-LCHlch(29.71, 62.04, 327.98°)
OKLaboklab(41.7% 0.1469 -0.0913)
OKLCHoklch(41.7% 0.173 328.1)
XYZxyz(11.8257, 6.1174, 18.9665)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A167A #167A16
analogous
#48167A #7A167A #7A1648
triadic
#7A167A #7A7A16 #167A7A
tetradic
#7A167A #7A4816 #167A16 #16487A
square
#7A167A #7A4816 #167A16 #16487A
split-complementary
#7A167A #487A16 #167A48
monochromatic
#1A051A #460D46 #7A167A #AE1FAE #DA31DA

Accessibility & contrast

On white

9.44
#7A167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7A167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A167A
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A167A#FFFFFF#000000##FFFFFF
##7A167A1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#344A78
Tritanopia (blue-blind)
#7E2848
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a167a;
/* rgb */ color: rgb(122, 22, 122);
/* oklch */ color: oklch(41.7% 0.173 328.1);
Tailwind
colors: {
  custom: {
    50: '#a461a1',
    500: '#7a167a',
    950: '#000000',
  },
}
SCSS
$custom: #7a167a;
$custom-light: #a461a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a167a",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 300,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41704,
    "c": 0.17291,
    "h": 328.1
  },
  "luminance": 0.06117
}

Semantic roles & 50–950 ramp

primary
#7A167A
secondary
#3DAF3D
accent
#EC3C3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7A167A

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

Preview Lab → · Contrast checker → · Palette generator →

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