#7C127E#7C127E

#7C127E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.180 H 327.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#7C127E
RGBrgb(124, 18, 126)
HSLhsl(299, 75%, 28%)
HSVhsv(299, 86%, 49%)
CMYKcmyk(1.6%, 85.7%, 0%, 50.6%)
CIE-LABlab(29.97, 54.71, -34.97)
CIE-LCHlch(29.97, 64.93, 327.41°)
OKLaboklab(42.04% 0.1517 -0.0972)
OKLCHoklch(42.04% 0.18 327.3)
XYZxyz(12.2942, 6.2250, 20.2886)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C127E #147E12
analogous
#46127E #7C127E #7E124A
triadic
#7C127E #7E7C12 #127E7C
tetradic
#7C127E #7E4612 #147E12 #124A7E
square
#7C127E #7E4612 #147E12 #124A7E
split-complementary
#7C127E #4A7E12 #127E46
monochromatic
#1A041B #470A48 #7C127E #B11AB4 #DD2AE1

Accessibility & contrast

On white

9.35
#7C127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7C127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C127E
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C127E#FFFFFF#000000##FFFFFF
##7C127E1.009.352.249.35
#FFFFFF9.351.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#324B7C
Tritanopia (blue-blind)
#80274A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c127e;
/* rgb */ color: rgb(124, 18, 126);
/* oklch */ color: oklch(42.0% 0.180 327.3);
Tailwind
colors: {
  custom: {
    50: '#a661a4',
    500: '#7c127e',
    950: '#000000',
  },
}
SCSS
$custom: #7c127e;
$custom-light: #a661a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c127e",
  "rgb": {
    "r": 124,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 298.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42043,
    "c": 0.1802,
    "h": 327.3
  },
  "luminance": 0.06224
}

Semantic roles & 50–950 ramp

primary
#7C127E
secondary
#3AB438
accent
#F2363A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C127E

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

Preview Lab → · Contrast checker → · Palette generator →

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