#7E1174#7E1174

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

Color values

HEX#7E1174
RGBrgb(126, 17, 116)
HSLhsl(306, 76%, 28%)
HSVhsv(306, 87%, 49%)
CMYKcmyk(0%, 86.5%, 7.9%, 50.6%)
CIE-LABlab(29.66, 53.72, -29.11)
CIE-LCHlch(29.66, 61.11, 331.55°)
OKLaboklab(41.7% 0.1549 -0.0802)
OKLCHoklch(41.7% 0.174 332.6)
XYZxyz(11.9571, 6.0985, 17.0670)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1174 #117E1B
analogous
#52117E #7E1174 #7E113D
triadic
#7E1174 #747E11 #11747E
tetradic
#7E1174 #7E5211 #117E1B #113D7E
square
#7E1174 #7E5211 #117E1B #113D7E
split-complementary
#7E1174 #3D7E11 #117E52
monochromatic
#1B0419 #480A42 #7E1174 #B418A6 #E227D1

Accessibility & contrast

On white

9.46
#7E1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1174
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1174#FFFFFF#000000##FFFFFF
##7E11741.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063C76
Deuteranopia (green-blind)
#3A4B72
Tritanopia (blue-blind)
#842044
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1174;
/* rgb */ color: rgb(126, 17, 116);
/* oklch */ color: oklch(41.7% 0.174 332.6);
Tailwind
colors: {
  custom: {
    50: '#a7609c',
    500: '#7e1174',
    950: '#000000',
  },
}
SCSS
$custom: #7e1174;
$custom-light: #a7609c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1174",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 305.505,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41695,
    "c": 0.1744,
    "h": 332.6
  },
  "luminance": 0.06097
}

Semantic roles & 50–950 ramp

primary
#7E1174
secondary
#37B442
accent
#F34635
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1174

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

Preview Lab → · Contrast checker → · Palette generator →

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