#7A167B#7A167B

#7A167B is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.8% C 0.174 H 327.7°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7A167B
RGBrgb(122, 22, 123)
HSLhsl(299, 70%, 28%)
HSVhsv(299, 82%, 48%)
CMYKcmyk(0.8%, 82.1%, 0%, 51.8%)
CIE-LABlab(29.77, 52.77, -33.43)
CIE-LCHlch(29.77, 62.47, 327.65°)
OKLaboklab(41.77% 0.1468 -0.0928)
OKLCHoklch(41.77% 0.174 327.7)
XYZxyz(11.8879, 6.1423, 19.2945)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A167B #177B16
analogous
#47167B #7A167B #7B1649
triadic
#7A167B #7B7A16 #167B7A
tetradic
#7A167B #7B4716 #177B16 #16497B
square
#7A167B #7B4716 #177B16 #16497B
split-complementary
#7A167B #497B16 #167B47
monochromatic
#1A051A #470D47 #7A167B #AD1FAF #D931DA

Accessibility & contrast

On white

9.42
#7A167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7A167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A167B
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A167B#FFFFFF#000000##FFFFFF
##7A167B1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#334A79
Tritanopia (blue-blind)
#7E2849
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a167b;
/* rgb */ color: rgb(122, 22, 123);
/* oklch */ color: oklch(41.8% 0.174 327.7);
Tailwind
colors: {
  custom: {
    50: '#a462a2',
    500: '#7a167b',
    950: '#000000',
  },
}
SCSS
$custom: #7a167b;
$custom-light: #a462a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a167b",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 299.406,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41768,
    "c": 0.17369,
    "h": 327.7
  },
  "luminance": 0.06141
}

Semantic roles & 50–950 ramp

primary
#7A167B
secondary
#3EB03D
accent
#EC3B3D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A167B

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

Preview Lab → · Contrast checker → · Palette generator →

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