#7C167C#7C167C

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

Color values

HEX#7C167C
RGBrgb(124, 22, 124)
HSLhsl(300, 70%, 29%)
HSVhsv(300, 82%, 49%)
CMYKcmyk(0%, 82.3%, 0%, 51.4%)
CIE-LABlab(30.19, 53.36, -33.36)
CIE-LCHlch(30.19, 62.93, 327.99°)
OKLaboklab(42.16% 0.149 -0.0926)
OKLCHoklch(42.16% 0.175 328.1)
XYZxyz(12.2370, 6.3151, 19.6393)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C167C #167C16
analogous
#49167C #7C167C #7C1649
triadic
#7C167C #7C7C16 #167C7C
tetradic
#7C167C #7C4916 #167C16 #16497C
square
#7C167C #7C4916 #167C16 #16497C
split-complementary
#7C167C #497C16 #167C49
monochromatic
#1A051A #480D48 #7C167C #B01FB0 #DB32DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C167C#FFFFFF#000000##FFFFFF
##7C167C1.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)
#003F7F
Deuteranopia (green-blind)
#354C7A
Tritanopia (blue-blind)
#80284A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c167c;
/* rgb */ color: rgb(124, 22, 124);
/* oklch */ color: oklch(42.2% 0.175 328.1);
Tailwind
colors: {
  custom: {
    50: '#a662a2',
    500: '#7c167c',
    950: '#000000',
  },
}
SCSS
$custom: #7c167c;
$custom-light: #a662a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c167c",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 300,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42159,
    "c": 0.17541,
    "h": 328.1
  },
  "luminance": 0.06314
}

Semantic roles & 50–950 ramp

primary
#7C167C
secondary
#3DB13D
accent
#ED3B3B
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C167C

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

Preview Lab → · Contrast checker → · Palette generator →

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