#7E2A77#7E2A77

#7E2A77 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.0% C 0.149 H 331.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7E2A77
RGBrgb(126, 42, 119)
HSLhsl(305, 50%, 33%)
HSVhsv(305, 67%, 49%)
CMYKcmyk(0%, 66.7%, 5.6%, 50.6%)
CIE-LABlab(32.75, 45.89, -26.13)
CIE-LCHlch(32.75, 52.81, 330.34°)
OKLaboklab(43.97% 0.1308 -0.0717)
OKLCHoklch(43.97% 0.149 331.3)
XYZxyz(12.7619, 7.4244, 18.2101)
Luminance0.0742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A77 #2A7E31
analogous
#5B2A7E #7E2A77 #7E2A4D
triadic
#7E2A77 #777E2A #2A777E
tetradic
#7E2A77 #7E5B2A #2A7E31 #2A4D7E
square
#7E2A77 #7E5B2A #2A7E31 #2A4D7E
split-complementary
#7E2A77 #4D7E2A #2A7E5B
monochromatic
#220B20 #501B4C #7E2A77 #AC39A2 #C85ABF

Accessibility & contrast

On white

8.45
#7E2A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2A77
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A77#FFFFFF#000000##FFFFFF
##7E2A771.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2a77;
/* rgb */ color: rgb(126, 42, 119);
/* oklch */ color: oklch(44.0% 0.149 331.3);
Tailwind
colors: {
  custom: {
    50: '#a66a9e',
    500: '#7e2a77',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a77;
$custom-light: #a66a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a77",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 305,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43973,
    "c": 0.1492,
    "h": 331.3
  },
  "luminance": 0.07423
}

Semantic roles & 50–950 ramp

primary
#7E2A77
secondary
#56AE5D
accent
#DA5A4E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2A77

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

Preview Lab → · Contrast checker → · Palette generator →

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