#7E1274#7E1274

#7E1274 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.8% C 0.174 H 332.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#7E1274
RGBrgb(126, 18, 116)
HSLhsl(306, 75%, 28%)
HSVhsv(306, 86%, 49%)
CMYKcmyk(0%, 85.7%, 7.9%, 50.6%)
CIE-LABlab(29.74, 53.49, -28.99)
CIE-LCHlch(29.74, 60.84, 331.55°)
OKLaboklab(41.75% 0.1542 -0.0798)
OKLCHoklch(41.75% 0.174 332.6)
XYZxyz(11.9729, 6.1302, 17.0723)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1274 #127E1C
analogous
#52127E #7E1274 #7E123E
triadic
#7E1274 #747E12 #12747E
tetradic
#7E1274 #7E5212 #127E1C #123E7E
square
#7E1274 #7E5212 #127E1C #123E7E
split-complementary
#7E1274 #3E7E12 #127E52
monochromatic
#1B0419 #480A43 #7E1274 #B41AA5 #E12AD0

Accessibility & contrast

On white

9.43
#7E1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E1274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1274
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1274#FFFFFF#000000##FFFFFF
##7E12741.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083D76
Deuteranopia (green-blind)
#3A4B72
Tritanopia (blue-blind)
#842144
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1274;
/* rgb */ color: rgb(126, 18, 116);
/* oklch */ color: oklch(41.8% 0.174 332.6);
Tailwind
colors: {
  custom: {
    50: '#a7619c',
    500: '#7e1274',
    950: '#000000',
  },
}
SCSS
$custom: #7e1274;
$custom-light: #a7619c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1274",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 305.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41751,
    "c": 0.17364,
    "h": 332.6
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#7E1274
secondary
#38B443
accent
#F24836
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1274

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

Preview Lab → · Contrast checker → · Palette generator →

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