#7D127F#7D127F

#7D127F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.3% C 0.181 H 327.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7D127F
RGBrgb(125, 18, 127)
HSLhsl(299, 75%, 28%)
HSVhsv(299, 86%, 50%)
CMYKcmyk(1.6%, 85.8%, 0%, 50.2%)
CIE-LABlab(30.22, 55.07, -35.19)
CIE-LCHlch(30.22, 65.36, 327.42°)
OKLaboklab(42.27% 0.1527 -0.0979)
OKLCHoklch(42.27% 0.181 327.3)
XYZxyz(12.5043, 6.3258, 20.6370)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D127F #147F12
analogous
#46127F #7D127F #7F124A
triadic
#7D127F #7F7D12 #127F7D
tetradic
#7D127F #7F4612 #147F12 #124A7F
square
#7D127F #7F4612 #147F12 #124A7F
split-complementary
#7D127F #4A7F12 #127F46
monochromatic
#1A041B #480A49 #7D127F #B21AB5 #DE2BE1

Accessibility & contrast

On white

9.27
#7D127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7D127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D127F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D127F#FFFFFF#000000##FFFFFF
##7D127F1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#324C7D
Tritanopia (blue-blind)
#81284B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d127f;
/* rgb */ color: rgb(125, 18, 127);
/* oklch */ color: oklch(42.3% 0.181 327.3);
Tailwind
colors: {
  custom: {
    50: '#a661a4',
    500: '#7d127f',
    950: '#000000',
  },
}
SCSS
$custom: #7d127f;
$custom-light: #a661a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d127f",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 298.899,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42272,
    "c": 0.18141,
    "h": 327.3
  },
  "luminance": 0.06325
}

Semantic roles & 50–950 ramp

primary
#7D127F
secondary
#3AB538
accent
#F23639
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D127F

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

Preview Lab → · Contrast checker → · Palette generator →

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