#7E1272#7E1272

#7E1272 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.172 H 333.6°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#7E1272
RGBrgb(126, 18, 114)
HSLhsl(307, 75%, 28%)
HSVhsv(307, 86%, 49%)
CMYKcmyk(0%, 85.7%, 9.5%, 50.6%)
CIE-LABlab(29.62, 53.18, -27.89)
CIE-LCHlch(29.62, 60.05, 332.32°)
OKLaboklab(41.63% 0.1542 -0.0766)
OKLCHoklch(41.63% 0.172 333.6)
XYZxyz(11.8579, 6.0842, 16.4662)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1272 #127E1E
analogous
#54127E #7E1272 #7E123C
triadic
#7E1272 #727E12 #12727E
tetradic
#7E1272 #7E5412 #127E1E #123C7E
square
#7E1272 #7E5412 #127E1E #123C7E
split-complementary
#7E1272 #3C7E12 #127E54
monochromatic
#1B0418 #480A42 #7E1272 #B41AA2 #E12ACC

Accessibility & contrast

On white

9.47
#7E1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7E1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1272
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1272#FFFFFF#000000##FFFFFF
##7E12721.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C74
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#842043
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1272;
/* rgb */ color: rgb(126, 18, 114);
/* oklch */ color: oklch(41.6% 0.172 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7619b',
    500: '#7e1272',
    950: '#000000',
  },
}
SCSS
$custom: #7e1272;
$custom-light: #a7619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1272",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 306.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41632,
    "c": 0.1722,
    "h": 333.6
  },
  "luminance": 0.06083
}

Semantic roles & 50–950 ramp

primary
#7E1272
secondary
#38B446
accent
#F24B36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1272

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

Preview Lab → · Contrast checker → · Palette generator →

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