#7B167E#7B167E

#7B167E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.177 H 326.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#7B167E
RGBrgb(123, 22, 126)
HSLhsl(298, 70%, 29%)
HSVhsv(298, 83%, 49%)
CMYKcmyk(2.4%, 82.5%, 0%, 50.6%)
CIE-LABlab(30.14, 53.49, -34.72)
CIE-LCHlch(30.14, 63.77, 327.02°)
OKLaboklab(42.13% 0.1478 -0.0966)
OKLCHoklch(42.13% 0.177 326.8)
XYZxyz(12.2210, 6.2920, 20.3054)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B167E #197E16
analogous
#47167E #7B167E #7E164D
triadic
#7B167E #7E7B16 #167E7B
tetradic
#7B167E #7E4716 #197E16 #164D7E
square
#7B167E #7E4716 #197E16 #164D7E
split-complementary
#7B167E #4D7E16 #167E47
monochromatic
#19051A #480D4A #7B167E #AE1FB2 #D733DB

Accessibility & contrast

On white

9.30
#7B167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7B167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B167E
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B167E#FFFFFF#000000##FFFFFF
##7B167E1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b167e;
/* rgb */ color: rgb(123, 22, 126);
/* oklch */ color: oklch(42.1% 0.177 326.8);
Tailwind
colors: {
  custom: {
    50: '#a562a4',
    500: '#7b167e',
    950: '#000000',
  },
}
SCSS
$custom: #7b167e;
$custom-light: #a562a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b167e",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 298.269,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42125,
    "c": 0.17651,
    "h": 326.8
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B167E

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

Preview Lab → · Contrast checker → · Palette generator →

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