#7C168F#7C168F

#7C168F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.4% C 0.191 H 320.5°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7C168F
RGBrgb(124, 22, 143)
HSLhsl(291, 73%, 32%)
HSVhsv(291, 85%, 56%)
CMYKcmyk(13.3%, 84.6%, 0%, 43.9%)
CIE-LABlab(31.45, 56.73, -43.20)
CIE-LCHlch(31.45, 71.31, 322.71°)
OKLaboklab(43.44% 0.147 -0.1213)
OKLCHoklch(43.44% 0.191 320.5)
XYZxyz(13.5564, 6.8428, 26.5880)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C168F #298F16
analogous
#40168F #7C168F #8F1665
triadic
#7C168F #8F7C16 #168F7C
tetradic
#7C168F #8F4016 #298F16 #16658F
square
#7C168F #8F4016 #298F16 #16658F
split-complementary
#7C168F #658F16 #168F40
monochromatic
#200625 #4E0E5A #7C168F #AA1EC4 #C83EE1

Accessibility & contrast

On white

8.87
#7C168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7C168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C168F
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C168F#FFFFFF#000000##FFFFFF
##7C168F1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#254D8C
Tritanopia (blue-blind)
#7D3255
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c168f;
/* rgb */ color: rgb(124, 22, 143);
/* oklch */ color: oklch(43.4% 0.191 320.5);
Tailwind
colors: {
  custom: {
    50: '#a663b0',
    500: '#7c168f',
    950: '#000000',
  },
}
SCSS
$custom: #7c168f;
$custom-light: #a663b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c168f",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 290.579,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43443,
    "c": 0.1906,
    "h": 320.5
  },
  "luminance": 0.06842
}

Semantic roles & 50–950 ramp

primary
#7C168F
secondary
#54C13F
accent
#F03855
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7C168F

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

Preview Lab → · Contrast checker → · Palette generator →

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