#7C1280#7C1280

#7C1280 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.182 H 326.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7C1280
RGBrgb(124, 18, 128)
HSLhsl(298, 75%, 29%)
HSVhsv(298, 86%, 50%)
CMYKcmyk(3.1%, 85.9%, 0%, 49.8%)
CIE-LABlab(30.10, 55.04, -36.02)
CIE-LCHlch(30.10, 65.78, 326.80°)
OKLaboklab(42.17% 0.1515 -0.1003)
OKLCHoklch(42.17% 0.182 326.5)
XYZxyz(12.4245, 6.2771, 20.9751)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1280 #168012
analogous
#451280 #7C1280 #80124D
triadic
#7C1280 #807C12 #12807C
tetradic
#7C1280 #804512 #168012 #124D80
square
#7C1280 #804512 #168012 #124D80
split-complementary
#7C1280 #4D8012 #128045
monochromatic
#1A041B #480A4A #7C1280 #B01AB6 #DB2BE1

Accessibility & contrast

On white

9.31
#7C1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C1280
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1280#FFFFFF#000000##FFFFFF
##7C12801.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F83
Deuteranopia (green-blind)
#304B7E
Tritanopia (blue-blind)
#7F284B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c1280;
/* rgb */ color: rgb(124, 18, 128);
/* oklch */ color: oklch(42.2% 0.182 326.5);
Tailwind
colors: {
  custom: {
    50: '#a661a5',
    500: '#7c1280',
    950: '#000000',
  },
}
SCSS
$custom: #7c1280;
$custom-light: #a661a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1280",
  "rgb": {
    "r": 124,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 297.818,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42174,
    "c": 0.18173,
    "h": 326.5
  },
  "luminance": 0.06276
}

Semantic roles & 50–950 ramp

primary
#7C1280
secondary
#3DB638
accent
#F2363D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1280

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

Preview Lab → · Contrast checker → · Palette generator →

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