#7E117E#7E117E

#7E117E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.3% C 0.182 H 328.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7E117E
RGBrgb(126, 17, 126)
HSLhsl(300, 76%, 28%)
HSVhsv(300, 87%, 49%)
CMYKcmyk(0%, 86.5%, 0%, 50.6%)
CIE-LABlab(30.26, 55.33, -34.48)
CIE-LCHlch(30.26, 65.20, 328.07°)
OKLaboklab(42.32% 0.1546 -0.0958)
OKLCHoklch(42.32% 0.182 328.2)
XYZxyz(12.5704, 6.3438, 20.2970)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E117E #117E11
analogous
#47117E #7E117E #7E1147
triadic
#7E117E #7E7E11 #117E7E
tetradic
#7E117E #7E4711 #117E11 #11477E
square
#7E117E #7E4711 #117E11 #11477E
split-complementary
#7E117E #477E11 #117E47
monochromatic
#1B041B #480A48 #7E117E #B418B4 #E227E2

Accessibility & contrast

On white

9.26
#7E117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E117E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E117E#FFFFFF#000000##FFFFFF
##7E117E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#344C7C
Tritanopia (blue-blind)
#82264A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e117e;
/* rgb */ color: rgb(126, 17, 126);
/* oklch */ color: oklch(42.3% 0.182 328.2);
Tailwind
colors: {
  custom: {
    50: '#a761a4',
    500: '#7e117e',
    950: '#000000',
  },
}
SCSS
$custom: #7e117e;
$custom-light: #a761a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e117e",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.42318,
    "c": 0.18181,
    "h": 328.2
  },
  "luminance": 0.06343
}

Semantic roles & 50–950 ramp

primary
#7E117E
secondary
#37B437
accent
#F33535
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E117E

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

Preview Lab → · Contrast checker → · Palette generator →

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