#7E2876#7E2876

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

Color values

HEX#7E2876
RGBrgb(126, 40, 118)
HSLhsl(306, 52%, 33%)
HSVhsv(306, 68%, 49%)
CMYKcmyk(0%, 68.3%, 6.3%, 50.6%)
CIE-LABlab(32.40, 46.56, -26.06)
CIE-LCHlch(32.40, 53.36, 330.76°)
OKLaboklab(43.7% 0.1332 -0.0715)
OKLCHoklch(43.7% 0.151 331.8)
XYZxyz(12.6330, 7.2622, 17.8724)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2876 #287E30
analogous
#5B287E #7E2876 #7E284B
triadic
#7E2876 #767E28 #28767E
tetradic
#7E2876 #7E5B28 #287E30 #284B7E
square
#7E2876 #7E5B28 #287E30 #284B7E
split-complementary
#7E2876 #4B7E28 #287E5B
monochromatic
#210B1F #50194A #7E2876 #AC37A2 #CA57BF

Accessibility & contrast

On white

8.56
#7E2876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E2876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2876
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2876#FFFFFF#000000##FFFFFF
##7E28761.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234478
Deuteranopia (green-blind)
#415174
Tritanopia (blue-blind)
#83304B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2876;
/* rgb */ color: rgb(126, 40, 118);
/* oklch */ color: oklch(43.7% 0.151 331.8);
Tailwind
colors: {
  custom: {
    50: '#a6699e',
    500: '#7e2876',
    950: '#000000',
  },
}
SCSS
$custom: #7e2876;
$custom-light: #a6699e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2876",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 305.581,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43696,
    "c": 0.15118,
    "h": 331.8
  },
  "luminance": 0.07261
}

Semantic roles & 50–950 ramp

primary
#7E2876
secondary
#53AF5C
accent
#DB5A4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2876

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

Preview Lab → · Contrast checker → · Palette generator →

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