#7B167F#7B167F

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

Color values

HEX#7B167F
RGBrgb(123, 22, 127)
HSLhsl(298, 70%, 29%)
HSVhsv(298, 83%, 50%)
CMYKcmyk(3.1%, 82.7%, 0%, 50.2%)
CIE-LABlab(30.20, 53.67, -35.25)
CIE-LCHlch(30.20, 64.21, 326.70°)
OKLaboklab(42.19% 0.1477 -0.0981)
OKLCHoklch(42.19% 0.177 326.4)
XYZxyz(12.2858, 6.3180, 20.6470)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B167F #1A7F16
analogous
#47167F #7B167F #7F164F
triadic
#7B167F #7F7B16 #167F7B
tetradic
#7B167F #7F4716 #1A7F16 #164F7F
square
#7B167F #7F4716 #1A7F16 #164F7F
split-complementary
#7B167F #4F7F16 #167F47
monochromatic
#19051A #480D4B #7B167F #AE1FB3 #D534DC

Accessibility & contrast

On white

9.28
#7B167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B167F
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B167F#FFFFFF#000000##FFFFFF
##7B167F1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#7E2A4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b167f;
/* rgb */ color: rgb(123, 22, 127);
/* oklch */ color: oklch(42.2% 0.177 326.4);
Tailwind
colors: {
  custom: {
    50: '#a562a4',
    500: '#7b167f',
    950: '#000000',
  },
}
SCSS
$custom: #7b167f;
$custom-light: #a562a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b167f",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 297.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.1773,
    "h": 326.4
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#7B167F
secondary
#42B43D
accent
#ED3B41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B167F

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

Preview Lab → · Contrast checker → · Palette generator →

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