#7E2A74#7E2A74

#7E2A74 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.8% C 0.147 H 332.8°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7E2A74
RGBrgb(126, 42, 116)
HSLhsl(307, 50%, 33%)
HSVhsv(307, 67%, 49%)
CMYKcmyk(0%, 66.7%, 7.9%, 50.6%)
CIE-LABlab(32.60, 45.37, -24.48)
CIE-LCHlch(32.60, 51.55, 331.64°)
OKLaboklab(43.81% 0.1305 -0.067)
OKLCHoklch(43.81% 0.147 332.8)
XYZxyz(12.5846, 7.3535, 17.2762)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A74 #2A7E34
analogous
#5E2A7E #7E2A74 #7E2A4A
triadic
#7E2A74 #747E2A #2A747E
tetradic
#7E2A74 #7E5E2A #2A7E34 #2A4A7E
square
#7E2A74 #7E5E2A #2A7E34 #2A4A7E
split-complementary
#7E2A74 #4A7E2A #2A7E5E
monochromatic
#220B1F #501B4A #7E2A74 #AC399E #C85ABB

Accessibility & contrast

On white

8.50
#7E2A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2A74
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A74#FFFFFF#000000##FFFFFF
##7E2A741.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274576
Deuteranopia (green-blind)
#435172
Tritanopia (blue-blind)
#84314B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2a74;
/* rgb */ color: rgb(126, 42, 116);
/* oklch */ color: oklch(43.8% 0.147 332.8);
Tailwind
colors: {
  custom: {
    50: '#a66a9c',
    500: '#7e2a74',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a74;
$custom-light: #a66a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a74",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 307.143,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43809,
    "c": 0.1467,
    "h": 332.8
  },
  "luminance": 0.07353
}

Semantic roles & 50–950 ramp

primary
#7E2A74
secondary
#56AE61
accent
#DA5F4E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2A74

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

Preview Lab → · Contrast checker → · Palette generator →

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