#7E1280#7E1280

#7E1280 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.5% C 0.183 H 327.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#7E1280
RGBrgb(126, 18, 128)
HSLhsl(299, 75%, 29%)
HSVhsv(299, 86%, 50%)
CMYKcmyk(1.6%, 85.9%, 0%, 49.8%)
CIE-LABlab(30.47, 55.44, -35.42)
CIE-LCHlch(30.47, 65.79, 327.43°)
OKLaboklab(42.5% 0.1538 -0.0985)
OKLCHoklch(42.5% 0.183 327.4)
XYZxyz(12.7166, 6.4277, 20.9888)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1280 #148012
analogous
#471280 #7E1280 #80124B
triadic
#7E1280 #807E12 #12807E
tetradic
#7E1280 #804712 #148012 #124B80
square
#7E1280 #804712 #148012 #124B80
split-complementary
#7E1280 #4B8012 #128047
monochromatic
#1A041B #490A4A #7E1280 #B31AB6 #DE2BE1

Accessibility & contrast

On white

9.19
#7E1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E1280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1280
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1280#FFFFFF#000000##FFFFFF
##7E12801.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F83
Deuteranopia (green-blind)
#334C7E
Tritanopia (blue-blind)
#82284B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1280;
/* rgb */ color: rgb(126, 18, 128);
/* oklch */ color: oklch(42.5% 0.183 327.4);
Tailwind
colors: {
  custom: {
    50: '#a761a5',
    500: '#7e1280',
    950: '#000000',
  },
}
SCSS
$custom: #7e1280;
$custom-light: #a761a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1280",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 298.909,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42502,
    "c": 0.18261,
    "h": 327.4
  },
  "luminance": 0.06427
}

Semantic roles & 50–950 ramp

primary
#7E1280
secondary
#3AB638
accent
#F23639
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1280

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

Preview Lab → · Contrast checker → · Palette generator →

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