#7E2976#7E2976

#7E2976 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.8% C 0.150 H 331.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7E2976
RGBrgb(126, 41, 118)
HSLhsl(306, 51%, 33%)
HSVhsv(306, 67%, 49%)
CMYKcmyk(0%, 67.5%, 6.3%, 50.6%)
CIE-LABlab(32.55, 46.14, -25.83)
CIE-LCHlch(32.55, 52.88, 330.76°)
OKLaboklab(43.81% 0.132 -0.0709)
OKLCHoklch(43.81% 0.15 331.8)
XYZxyz(12.6671, 7.3305, 17.8838)
Luminance0.0733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2976 #297E31
analogous
#5B297E #7E2976 #7E294B
triadic
#7E2976 #767E29 #29767E
tetradic
#7E2976 #7E5B29 #297E31 #294B7E
square
#7E2976 #7E5B29 #297E31 #294B7E
split-complementary
#7E2976 #4B7E29 #297E5B
monochromatic
#220B20 #501A4B #7E2976 #AC38A1 #C959BE

Accessibility & contrast

On white

8.52
#7E2976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7E2976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2976
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2976#FFFFFF#000000##FFFFFF
##7E29761.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244578
Deuteranopia (green-blind)
#425174
Tritanopia (blue-blind)
#83314C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2976;
/* rgb */ color: rgb(126, 41, 118);
/* oklch */ color: oklch(43.8% 0.150 331.8);
Tailwind
colors: {
  custom: {
    50: '#a66a9e',
    500: '#7e2976',
    950: '#000000',
  },
}
SCSS
$custom: #7e2976;
$custom-light: #a66a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2976",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 305.647,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43806,
    "c": 0.14978,
    "h": 331.8
  },
  "luminance": 0.0733
}

Semantic roles & 50–950 ramp

primary
#7E2976
secondary
#55AE5D
accent
#DA5B4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2976

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

Preview Lab → · Contrast checker → · Palette generator →

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