#7E117D#7E117D

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

Color values

HEX#7E117D
RGBrgb(126, 17, 125)
HSLhsl(301, 76%, 28%)
HSVhsv(301, 87%, 49%)
CMYKcmyk(0%, 86.5%, 0.8%, 50.6%)
CIE-LABlab(30.20, 55.17, -33.95)
CIE-LCHlch(30.20, 64.78, 328.39°)
OKLaboklab(42.25% 0.1546 -0.0942)
OKLCHoklch(42.25% 0.181 328.6)
XYZxyz(12.5062, 6.3182, 19.9589)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E117D #117E12
analogous
#48117E #7E117D #7E1147
triadic
#7E117D #7D7E11 #117D7E
tetradic
#7E117D #7E4811 #117E12 #11477E
square
#7E117D #7E4811 #117E12 #11477E
split-complementary
#7E117D #477E11 #117E48
monochromatic
#1B041B #480A48 #7E117D #B418B2 #E227E0

Accessibility & contrast

On white

9.28
#7E117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E117D
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E117D#FFFFFF#000000##FFFFFF
##7E117D1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#822649
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e117d;
/* rgb */ color: rgb(126, 17, 125);
/* oklch */ color: oklch(42.3% 0.181 328.6);
Tailwind
colors: {
  custom: {
    50: '#a761a3',
    500: '#7e117d',
    950: '#000000',
  },
}
SCSS
$custom: #7e117d;
$custom-light: #a761a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e117d",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 300.55,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.42253,
    "c": 0.18106,
    "h": 328.6
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#7E117D
secondary
#37B438
accent
#F33735
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E117D

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

Preview Lab → · Contrast checker → · Palette generator →

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