#7D126F#7D126F

#7D126F is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.3% C 0.170 H 334.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#7D126F
RGBrgb(125, 18, 111)
HSLhsl(308, 75%, 28%)
HSVhsv(308, 86%, 49%)
CMYKcmyk(0%, 85.6%, 11.2%, 51%)
CIE-LABlab(29.26, 52.50, -26.55)
CIE-LCHlch(29.26, 58.84, 333.17°)
OKLaboklab(41.29% 0.1531 -0.0728)
OKLCHoklch(41.29% 0.17 334.6)
XYZxyz(11.5431, 5.9414, 15.5747)
Luminance0.0594 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D126F #127D20
analogous
#55127D #7D126F #7D123A
triadic
#7D126F #6F7D12 #126F7D
tetradic
#7D126F #7D5512 #127D20 #123A7D
square
#7D126F #7D5512 #127D20 #123A7D
split-complementary
#7D126F #3A7D12 #127D55
monochromatic
#1B0418 #480A3F #7D126F #B21A9F #E029C8

Accessibility & contrast

On white

9.60
#7D126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7D126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D126F
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D126F#FFFFFF#000000##FFFFFF
##7D126F1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103B71
Deuteranopia (green-blind)
#3B4A6D
Tritanopia (blue-blind)
#831E41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d126f;
/* rgb */ color: rgb(125, 18, 111);
/* oklch */ color: oklch(41.3% 0.170 334.6);
Tailwind
colors: {
  custom: {
    50: '#a66098',
    500: '#7d126f',
    950: '#000000',
  },
}
SCSS
$custom: #7d126f;
$custom-light: #a66098;
$custom-dark: #000000;
JSON
{
  "hex": "#7d126f",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 307.85,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41285,
    "c": 0.16953,
    "h": 334.6
  },
  "luminance": 0.0594
}

Semantic roles & 50–950 ramp

primary
#7D126F
secondary
#38B348
accent
#F14F36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7D126F

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

Preview Lab → · Contrast checker → · Palette generator →

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