#7D126E#7D126E

#7D126E is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.169 H 335.1°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#7D126E
RGBrgb(125, 18, 110)
HSLhsl(308, 75%, 28%)
HSVhsv(308, 86%, 49%)
CMYKcmyk(0%, 85.6%, 12%, 51%)
CIE-LABlab(29.21, 52.35, -26.00)
CIE-LCHlch(29.21, 58.45, 333.59°)
OKLaboklab(41.23% 0.1531 -0.0712)
OKLCHoklch(41.23% 0.169 335.1)
XYZxyz(11.4884, 5.9195, 15.2864)
Luminance0.0592 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D126E #127D21
analogous
#56127D #7D126E #7D1238
triadic
#7D126E #6E7D12 #126E7D
tetradic
#7D126E #7D5612 #127D21 #12387D
square
#7D126E #7D5612 #127D21 #12387D
split-complementary
#7D126E #387D12 #127D56
monochromatic
#1B0418 #480A3F #7D126E #B21A9D #E029C7

Accessibility & contrast

On white

9.62
#7D126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7D126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D126E
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D126E#FFFFFF#000000##FFFFFF
##7D126E1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113B70
Deuteranopia (green-blind)
#3C4A6C
Tritanopia (blue-blind)
#841D41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d126e;
/* rgb */ color: rgb(125, 18, 110);
/* oklch */ color: oklch(41.2% 0.169 335.1);
Tailwind
colors: {
  custom: {
    50: '#a66098',
    500: '#7d126e',
    950: '#000000',
  },
}
SCSS
$custom: #7d126e;
$custom-light: #a66098;
$custom-dark: #000000;
JSON
{
  "hex": "#7d126e",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 308.411,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41228,
    "c": 0.16881,
    "h": 335.1
  },
  "luminance": 0.05918
}

Semantic roles & 50–950 ramp

primary
#7D126E
secondary
#38B349
accent
#F15136
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7D126E

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

Preview Lab → · Contrast checker → · Palette generator →

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