#7C127F#7C127F

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

Color values

HEX#7C127F
RGBrgb(124, 18, 127)
HSLhsl(298, 75%, 28%)
HSVhsv(298, 86%, 50%)
CMYKcmyk(2.4%, 85.8%, 0%, 50.2%)
CIE-LABlab(30.04, 54.87, -35.50)
CIE-LCHlch(30.04, 65.36, 327.10°)
OKLaboklab(42.11% 0.1516 -0.0988)
OKLCHoklch(42.11% 0.181 326.9)
XYZxyz(12.3590, 6.2509, 20.6302)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C127F #157F12
analogous
#45127F #7C127F #7F124B
triadic
#7C127F #7F7C12 #127F7C
tetradic
#7C127F #7F4512 #157F12 #124B7F
square
#7C127F #7F4512 #157F12 #124B7F
split-complementary
#7C127F #4B7F12 #127F45
monochromatic
#1A041B #480A49 #7C127F #B01AB5 #DC2BE1

Accessibility & contrast

On white

9.33
#7C127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7C127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C127F
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C127F#FFFFFF#000000##FFFFFF
##7C127F1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#80284B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c127f;
/* rgb */ color: rgb(124, 18, 127);
/* oklch */ color: oklch(42.1% 0.181 326.9);
Tailwind
colors: {
  custom: {
    50: '#a661a5',
    500: '#7c127f',
    950: '#000000',
  },
}
SCSS
$custom: #7c127f;
$custom-light: #a661a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c127f",
  "rgb": {
    "r": 124,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 298.349,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42108,
    "c": 0.18097,
    "h": 326.9
  },
  "luminance": 0.0625
}

Semantic roles & 50–950 ramp

primary
#7C127F
secondary
#3CB538
accent
#F2363B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C127F

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

Preview Lab → · Contrast checker → · Palette generator →

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