#7D117E#7D117E

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

Color values

HEX#7D117E
RGBrgb(125, 17, 126)
HSLhsl(299, 76%, 28%)
HSVhsv(299, 87%, 49%)
CMYKcmyk(0.8%, 86.5%, 0%, 50.6%)
CIE-LABlab(30.08, 55.13, -34.79)
CIE-LCHlch(30.08, 65.19, 327.75°)
OKLaboklab(42.15% 0.1535 -0.0967)
OKLCHoklch(42.15% 0.181 327.8)
XYZxyz(12.4236, 6.2682, 20.2902)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D117E #127E11
analogous
#47117E #7D117E #7E1148
triadic
#7D117E #7E7D11 #117E7D
tetradic
#7D117E #7E4711 #127E11 #11487E
square
#7D117E #7E4711 #127E11 #11487E
split-complementary
#7D117E #487E11 #117E47
monochromatic
#1B041B #480A48 #7D117E #B218B4 #E027E2

Accessibility & contrast

On white

9.32
#7D117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7D117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D117E
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D117E#FFFFFF#000000##FFFFFF
##7D117E1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#334B7C
Tritanopia (blue-blind)
#81274A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d117e;
/* rgb */ color: rgb(125, 17, 126);
/* oklch */ color: oklch(42.2% 0.181 327.8);
Tailwind
colors: {
  custom: {
    50: '#a661a4',
    500: '#7d117e',
    950: '#000000',
  },
}
SCSS
$custom: #7d117e;
$custom-light: #a661a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d117e",
  "rgb": {
    "r": 125,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 299.45,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.42152,
    "c": 0.18137,
    "h": 327.8
  },
  "luminance": 0.06267
}

Semantic roles & 50–950 ramp

primary
#7D117E
secondary
#38B437
accent
#F33537
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D117E

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

Preview Lab → · Contrast checker → · Palette generator →

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