#7C167B#7C167B

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

Color values

HEX#7C167B
RGBrgb(124, 22, 123)
HSLhsl(301, 70%, 29%)
HSVhsv(301, 82%, 49%)
CMYKcmyk(0%, 82.3%, 0.8%, 51.4%)
CIE-LABlab(30.13, 53.19, -32.82)
CIE-LCHlch(30.13, 62.51, 328.32°)
OKLaboklab(42.1% 0.149 -0.091)
OKLCHoklch(42.1% 0.175 328.6)
XYZxyz(12.1741, 6.2899, 19.3079)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C167B #167C17
analogous
#4A167C #7C167B #7C1648
triadic
#7C167B #7B7C16 #167B7C
tetradic
#7C167B #7C4A16 #167C17 #16487C
square
#7C167B #7C4A16 #167C17 #16487C
split-complementary
#7C167B #487C16 #167C4A
monochromatic
#1A051A #480D47 #7C167B #B01FAF #DB32D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C167B#FFFFFF#000000##FFFFFF
##7C167B1.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)
#003F7E
Deuteranopia (green-blind)
#354B79
Tritanopia (blue-blind)
#802849
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c167b;
/* rgb */ color: rgb(124, 22, 123);
/* oklch */ color: oklch(42.1% 0.175 328.6);
Tailwind
colors: {
  custom: {
    50: '#a562a1',
    500: '#7c167b',
    950: '#000000',
  },
}
SCSS
$custom: #7c167b;
$custom-light: #a562a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c167b",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 300.588,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42096,
    "c": 0.17463,
    "h": 328.6
  },
  "luminance": 0.06289
}

Semantic roles & 50–950 ramp

primary
#7C167B
secondary
#3DB13E
accent
#ED3D3B
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C167B

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

Preview Lab → · Contrast checker → · Palette generator →

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