#7E117C#7E117C

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

Color values

HEX#7E117C
RGBrgb(126, 17, 124)
HSLhsl(301, 76%, 28%)
HSVhsv(301, 87%, 49%)
CMYKcmyk(0%, 86.5%, 1.6%, 50.6%)
CIE-LABlab(30.14, 55.00, -33.42)
CIE-LCHlch(30.14, 64.36, 328.72°)
OKLaboklab(42.19% 0.1547 -0.0927)
OKLCHoklch(42.19% 0.18 329.1)
XYZxyz(12.4426, 6.2927, 19.6242)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E117C #117E13
analogous
#49117E #7E117C #7E1145
triadic
#7E117C #7C7E11 #117C7E
tetradic
#7E117C #7E4911 #117E13 #11457E
square
#7E117C #7E4911 #117E13 #11457E
split-complementary
#7E117C #457E11 #117E49
monochromatic
#1B041B #480A47 #7E117C #B418B1 #E227DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E117C#FFFFFF#000000##FFFFFF
##7E117C1.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)
#003E7F
Deuteranopia (green-blind)
#354C7A
Tritanopia (blue-blind)
#832549
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e117c;
/* rgb */ color: rgb(126, 17, 124);
/* oklch */ color: oklch(42.2% 0.180 329.1);
Tailwind
colors: {
  custom: {
    50: '#a761a2',
    500: '#7e117c',
    950: '#000000',
  },
}
SCSS
$custom: #7e117c;
$custom-light: #a761a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e117c",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 301.101,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.18031,
    "h": 329.1
  },
  "luminance": 0.06292
}

Semantic roles & 50–950 ramp

primary
#7E117C
secondary
#37B439
accent
#F33835
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E117C

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

Preview Lab → · Contrast checker → · Palette generator →

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