#7D127E#7D127E

#7D127E 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.29:1 contrast (WCAG AA passes).

Color values

HEX#7D127E
RGBrgb(125, 18, 126)
HSLhsl(299, 75%, 28%)
HSVhsv(299, 86%, 49%)
CMYKcmyk(0.8%, 85.7%, 0%, 50.6%)
CIE-LABlab(30.16, 54.91, -34.67)
CIE-LCHlch(30.16, 64.93, 327.73°)
OKLaboklab(42.21% 0.1528 -0.0963)
OKLCHoklch(42.21% 0.181 327.8)
XYZxyz(12.4395, 6.2999, 20.2954)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D127E #137E12
analogous
#47127E #7D127E #7E1249
triadic
#7D127E #7E7D12 #127E7D
tetradic
#7D127E #7E4712 #137E12 #12497E
square
#7D127E #7E4712 #137E12 #12497E
split-complementary
#7D127E #497E12 #127E47
monochromatic
#1B041B #480A48 #7D127E #B21AB4 #DF2AE1

Accessibility & contrast

On white

9.29
#7D127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7D127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D127E
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D127E#FFFFFF#000000##FFFFFF
##7D127E1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d127e;
/* rgb */ color: rgb(125, 18, 126);
/* oklch */ color: oklch(42.2% 0.181 327.8);
Tailwind
colors: {
  custom: {
    50: '#a661a4',
    500: '#7d127e',
    950: '#000000',
  },
}
SCSS
$custom: #7d127e;
$custom-light: #a661a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d127e",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 299.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42207,
    "c": 0.18064,
    "h": 327.8
  },
  "luminance": 0.06299
}

Semantic roles & 50–950 ramp

primary
#7D127E
secondary
#39B438
accent
#F23638
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D127E

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

Preview Lab → · Contrast checker → · Palette generator →

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