#7E2A76#7E2A76

#7E2A76 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.9% C 0.148 H 331.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#7E2A76
RGBrgb(126, 42, 118)
HSLhsl(306, 50%, 33%)
HSVhsv(306, 67%, 49%)
CMYKcmyk(0%, 66.7%, 6.3%, 50.6%)
CIE-LABlab(32.70, 45.71, -25.58)
CIE-LCHlch(32.70, 52.38, 330.76°)
OKLaboklab(43.92% 0.1307 -0.0702)
OKLCHoklch(43.92% 0.148 331.8)
XYZxyz(12.7022, 7.4005, 17.8955)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A76 #2A7E32
analogous
#5C2A7E #7E2A76 #7E2A4C
triadic
#7E2A76 #767E2A #2A767E
tetradic
#7E2A76 #7E5C2A #2A7E32 #2A4C7E
square
#7E2A76 #7E5C2A #2A7E32 #2A4C7E
split-complementary
#7E2A76 #4C7E2A #2A7E5C
monochromatic
#220B20 #501B4B #7E2A76 #AC39A1 #C85ABE

Accessibility & contrast

On white

8.47
#7E2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E2A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A76
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A76#FFFFFF#000000##FFFFFF
##7E2A761.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2a76;
/* rgb */ color: rgb(126, 42, 118);
/* oklch */ color: oklch(43.9% 0.148 331.8);
Tailwind
colors: {
  custom: {
    50: '#a66a9e',
    500: '#7e2a76',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a76;
$custom-light: #a66a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a76",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 305.714,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43918,
    "c": 0.14836,
    "h": 331.8
  },
  "luminance": 0.074
}

Semantic roles & 50–950 ramp

primary
#7E2A76
secondary
#56AE5E
accent
#DA5C4E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2A76

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

Preview Lab → · Contrast checker → · Palette generator →

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