#7C117E#7C117E

#7C117E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.181 H 327.4°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7C117E
RGBrgb(124, 17, 126)
HSLhsl(299, 76%, 28%)
HSVhsv(299, 87%, 49%)
CMYKcmyk(1.6%, 86.5%, 0%, 50.6%)
CIE-LABlab(29.89, 54.93, -35.09)
CIE-LCHlch(29.89, 65.19, 327.43°)
OKLaboklab(41.99% 0.1524 -0.0976)
OKLCHoklch(41.99% 0.181 327.4)
XYZxyz(12.2783, 6.1933, 20.2833)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C117E #137E11
analogous
#45117E #7C117E #7E1149
triadic
#7C117E #7E7C11 #117E7C
tetradic
#7C117E #7E4511 #137E11 #11497E
square
#7C117E #7E4511 #137E11 #11497E
split-complementary
#7C117E #497E11 #117E45
monochromatic
#1B041B #470A48 #7C117E #B118B4 #DF27E2

Accessibility & contrast

On white

9.38
#7C117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7C117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C117E
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C117E#FFFFFF#000000##FFFFFF
##7C117E1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#314B7C
Tritanopia (blue-blind)
#80274A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c117e;
/* rgb */ color: rgb(124, 17, 126);
/* oklch */ color: oklch(42.0% 0.181 327.4);
Tailwind
colors: {
  custom: {
    50: '#a661a4',
    500: '#7c117e',
    950: '#000000',
  },
}
SCSS
$custom: #7c117e;
$custom-light: #a661a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c117e",
  "rgb": {
    "r": 124,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 298.899,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41987,
    "c": 0.18093,
    "h": 327.4
  },
  "luminance": 0.06192
}

Semantic roles & 50–950 ramp

primary
#7C117E
secondary
#39B437
accent
#F33538
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C117E

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

Preview Lab → · Contrast checker → · Palette generator →

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