#7E1276#7E1276

#7E1276 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.175 H 331.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7E1276
RGBrgb(126, 18, 118)
HSLhsl(304, 75%, 28%)
HSVhsv(304, 86%, 49%)
CMYKcmyk(0%, 85.7%, 6.3%, 50.6%)
CIE-LABlab(29.86, 53.81, -30.07)
CIE-LCHlch(29.86, 61.64, 330.80°)
OKLaboklab(41.87% 0.1542 -0.0829)
OKLCHoklch(41.87% 0.175 331.7)
XYZxyz(12.0905, 6.1773, 17.6916)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1276 #127E1A
analogous
#50127E #7E1276 #7E1240
triadic
#7E1276 #767E12 #12767E
tetradic
#7E1276 #7E5012 #127E1A #12407E
square
#7E1276 #7E5012 #127E1A #12407E
split-complementary
#7E1276 #407E12 #127E50
monochromatic
#1B0419 #480A44 #7E1276 #B41AA8 #E12AD3

Accessibility & contrast

On white

9.40
#7E1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1276
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1276#FFFFFF#000000##FFFFFF
##7E12761.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033D78
Deuteranopia (green-blind)
#394B74
Tritanopia (blue-blind)
#842245
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1276;
/* rgb */ color: rgb(126, 18, 118);
/* oklch */ color: oklch(41.9% 0.175 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7619e',
    500: '#7e1276',
    950: '#000000',
  },
}
SCSS
$custom: #7e1276;
$custom-light: #a7619e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1276",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 304.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41872,
    "c": 0.1751,
    "h": 331.7
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#7E1276
secondary
#38B441
accent
#F24436
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1276

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

Preview Lab → · Contrast checker → · Palette generator →

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