#7C168E#7C168E

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

Color values

HEX#7C168E
RGBrgb(124, 22, 142)
HSLhsl(291, 73%, 32%)
HSVhsv(291, 85%, 56%)
CMYKcmyk(12.7%, 84.5%, 0%, 44.3%)
CIE-LABlab(31.38, 56.54, -42.70)
CIE-LCHlch(31.38, 70.86, 322.94°)
OKLaboklab(43.37% 0.1471 -0.1199)
OKLCHoklch(43.37% 0.19 320.8)
XYZxyz(13.4810, 6.8127, 26.1908)
Luminance0.0681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C168E #288E16
analogous
#40168E #7C168E #8E1664
triadic
#7C168E #8E7C16 #168E7C
tetradic
#7C168E #8E4016 #288E16 #16648E
square
#7C168E #8E4016 #288E16 #16648E
split-complementary
#7C168E #648E16 #168E40
monochromatic
#1F0624 #4E0E59 #7C168E #AA1EC3 #C83DE1

Accessibility & contrast

On white

8.89
#7C168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7C168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C168E
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C168E#FFFFFF#000000##FFFFFF
##7C168E1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#7D3254
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c168e;
/* rgb */ color: rgb(124, 22, 142);
/* oklch */ color: oklch(43.4% 0.190 320.8);
Tailwind
colors: {
  custom: {
    50: '#a663b0',
    500: '#7c168e',
    950: '#000000',
  },
}
SCSS
$custom: #7c168e;
$custom-light: #a663b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c168e",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 291,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43372,
    "c": 0.18979,
    "h": 320.8
  },
  "luminance": 0.06812
}

Semantic roles & 50–950 ramp

primary
#7C168E
secondary
#52C13F
accent
#F03854
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C168E

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

Preview Lab → · Contrast checker → · Palette generator →

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