#7D126C#7D126C

#7D126C is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.167 H 336.0°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#7D126C
RGBrgb(125, 18, 108)
HSLhsl(310, 75%, 28%)
HSVhsv(310, 86%, 49%)
CMYKcmyk(0%, 85.6%, 13.6%, 51%)
CIE-LABlab(29.10, 52.05, -24.89)
CIE-LCHlch(29.10, 57.70, 334.44°)
OKLaboklab(41.11% 0.153 -0.068)
OKLCHoklch(41.11% 0.167 336)
XYZxyz(11.3807, 5.8764, 14.7193)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D126C #127D23
analogous
#58127D #7D126C #7D1236
triadic
#7D126C #6C7D12 #126C7D
tetradic
#7D126C #7D5812 #127D23 #12367D
square
#7D126C #7D5812 #127D23 #12367D
split-complementary
#7D126C #367D12 #127D58
monochromatic
#1B0417 #480A3E #7D126C #B21A9A #E029C3

Accessibility & contrast

On white

9.66
#7D126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7D126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D126C
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D126C#FFFFFF#000000##FFFFFF
##7D126C1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143B6E
Deuteranopia (green-blind)
#3D4A6A
Tritanopia (blue-blind)
#841C40
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d126c;
/* rgb */ color: rgb(125, 18, 108);
/* oklch */ color: oklch(41.1% 0.167 336.0);
Tailwind
colors: {
  custom: {
    50: '#a66096',
    500: '#7d126c',
    950: '#000000',
  },
}
SCSS
$custom: #7d126c;
$custom-light: #a66096;
$custom-dark: #000000;
JSON
{
  "hex": "#7d126c",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 309.533,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41114,
    "c": 0.16741,
    "h": 336
  },
  "luminance": 0.05875
}

Semantic roles & 50–950 ramp

primary
#7D126C
secondary
#38B34B
accent
#F15436
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7D126C

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

Preview Lab → · Contrast checker → · Palette generator →

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