#7D126D#7D126D

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

Color values

HEX#7D126D
RGBrgb(125, 18, 109)
HSLhsl(309, 75%, 28%)
HSVhsv(309, 86%, 49%)
CMYKcmyk(0%, 85.6%, 12.8%, 51%)
CIE-LABlab(29.15, 52.20, -25.45)
CIE-LCHlch(29.15, 58.07, 334.01°)
OKLaboklab(41.17% 0.153 -0.0696)
OKLCHoklch(41.17% 0.168 335.5)
XYZxyz(11.4343, 5.8978, 15.0012)
Luminance0.0590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D126D #127D22
analogous
#57127D #7D126D #7D1237
triadic
#7D126D #6D7D12 #126D7D
tetradic
#7D126D #7D5712 #127D22 #12377D
square
#7D126D #7D5712 #127D22 #12377D
split-complementary
#7D126D #377D12 #127D57
monochromatic
#1B0417 #480A3E #7D126D #B21A9C #E029C5

Accessibility & contrast

On white

9.64
#7D126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D126D
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D126D#FFFFFF#000000##FFFFFF
##7D126D1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123B6F
Deuteranopia (green-blind)
#3C4A6B
Tritanopia (blue-blind)
#841D40
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d126d;
/* rgb */ color: rgb(125, 18, 109);
/* oklch */ color: oklch(41.2% 0.168 335.5);
Tailwind
colors: {
  custom: {
    50: '#a66097',
    500: '#7d126d',
    950: '#000000',
  },
}
SCSS
$custom: #7d126d;
$custom-light: #a66097;
$custom-dark: #000000;
JSON
{
  "hex": "#7d126d",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 308.972,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.4117,
    "c": 0.16811,
    "h": 335.5
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

primary
#7D126D
secondary
#38B34A
accent
#F15236
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7D126D

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

Preview Lab → · Contrast checker → · Palette generator →

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