#7E1273#7E1273

#7E1273 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.173 H 333.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#7E1273
RGBrgb(126, 18, 115)
HSLhsl(306, 75%, 28%)
HSVhsv(306, 86%, 49%)
CMYKcmyk(0%, 85.7%, 8.7%, 50.6%)
CIE-LABlab(29.68, 53.34, -28.44)
CIE-LCHlch(29.68, 60.45, 331.93°)
OKLaboklab(41.69% 0.1542 -0.0782)
OKLCHoklch(41.69% 0.173 333.1)
XYZxyz(11.9151, 6.1071, 16.7676)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1273 #127E1D
analogous
#53127E #7E1273 #7E123D
triadic
#7E1273 #737E12 #12737E
tetradic
#7E1273 #7E5312 #127E1D #123D7E
square
#7E1273 #7E5312 #127E1D #123D7E
split-complementary
#7E1273 #3D7E12 #127E53
monochromatic
#1B0418 #480A42 #7E1273 #B41AA4 #E12ACE

Accessibility & contrast

On white

9.45
#7E1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1273
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1273#FFFFFF#000000##FFFFFF
##7E12731.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3C75
Deuteranopia (green-blind)
#3A4B71
Tritanopia (blue-blind)
#842044
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1273;
/* rgb */ color: rgb(126, 18, 115);
/* oklch */ color: oklch(41.7% 0.173 333.1);
Tailwind
colors: {
  custom: {
    50: '#a7619b',
    500: '#7e1273',
    950: '#000000',
  },
}
SCSS
$custom: #7e1273;
$custom-light: #a7619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1273",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 306.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41691,
    "c": 0.17292,
    "h": 333.1
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#7E1273
secondary
#38B445
accent
#F24936
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1273

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

Preview Lab → · Contrast checker → · Palette generator →

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