#7E1279#7E1279

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

Color values

HEX#7E1279
RGBrgb(126, 18, 121)
HSLhsl(303, 75%, 28%)
HSVhsv(303, 86%, 49%)
CMYKcmyk(0%, 85.7%, 4%, 50.6%)
CIE-LABlab(30.03, 54.29, -31.69)
CIE-LCHlch(30.03, 62.86, 329.72°)
OKLaboklab(42.06% 0.1542 -0.0876)
OKLCHoklch(42.06% 0.177 330.4)
XYZxyz(12.2716, 6.2497, 18.6454)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1279 #127E17
analogous
#4D127E #7E1279 #7E1243
triadic
#7E1279 #797E12 #12797E
tetradic
#7E1279 #7E4D12 #127E17 #12437E
square
#7E1279 #7E4D12 #127E17 #12437E
split-complementary
#7E1279 #437E12 #127E4D
monochromatic
#1B041A #480A46 #7E1279 #B41AAC #E12AD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1279#FFFFFF#000000##FFFFFF
##7E12791.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)
#003E7C
Deuteranopia (green-blind)
#374C77
Tritanopia (blue-blind)
#832447
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1279;
/* rgb */ color: rgb(126, 18, 121);
/* oklch */ color: oklch(42.1% 0.177 330.4);
Tailwind
colors: {
  custom: {
    50: '#a761a0',
    500: '#7e1279',
    950: '#000000',
  },
}
SCSS
$custom: #7e1279;
$custom-light: #a761a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1279",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 121
  },
  "hsl": {
    "h": 302.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42056,
    "c": 0.17733,
    "h": 330.4
  },
  "luminance": 0.06249
}

Semantic roles & 50–950 ramp

primary
#7E1279
secondary
#38B43E
accent
#F23F36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E1279

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

Preview Lab → · Contrast checker → · Palette generator →

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