#7E1175#7E1175

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

Color values

HEX#7E1175
RGBrgb(126, 17, 117)
HSLhsl(305, 76%, 28%)
HSVhsv(305, 87%, 49%)
CMYKcmyk(0%, 86.5%, 7.1%, 50.6%)
CIE-LABlab(29.72, 53.88, -29.66)
CIE-LCHlch(29.72, 61.50, 331.17°)
OKLaboklab(41.76% 0.1549 -0.0817)
OKLCHoklch(41.76% 0.175 332.2)
XYZxyz(12.0156, 6.1219, 17.3750)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1175 #117E1A
analogous
#50117E #7E1175 #7E113E
triadic
#7E1175 #757E11 #11757E
tetradic
#7E1175 #7E5011 #117E1A #113E7E
square
#7E1175 #7E5011 #117E1A #113E7E
split-complementary
#7E1175 #3E7E11 #117E50
monochromatic
#1B0419 #480A43 #7E1175 #B418A7 #E227D3

Accessibility & contrast

On white

9.44
#7E1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1175
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1175#FFFFFF#000000##FFFFFF
##7E11751.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043D77
Deuteranopia (green-blind)
#394B73
Tritanopia (blue-blind)
#842145
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1175;
/* rgb */ color: rgb(126, 17, 117);
/* oklch */ color: oklch(41.8% 0.175 332.2);
Tailwind
colors: {
  custom: {
    50: '#a7609d',
    500: '#7e1175',
    950: '#000000',
  },
}
SCSS
$custom: #7e1175;
$custom-light: #a7609d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1175",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 304.954,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41755,
    "c": 0.17514,
    "h": 332.2
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

primary
#7E1175
secondary
#37B441
accent
#F34535
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1175

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

Preview Lab → · Contrast checker → · Palette generator →

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