#7E2A73#7E2A73

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

Color values

HEX#7E2A73
RGBrgb(126, 42, 115)
HSLhsl(308, 50%, 33%)
HSVhsv(308, 67%, 49%)
CMYKcmyk(0%, 66.7%, 8.7%, 50.6%)
CIE-LABlab(32.55, 45.19, -23.93)
CIE-LCHlch(32.55, 51.14, 332.10°)
OKLaboklab(43.76% 0.1304 -0.0654)
OKLCHoklch(43.76% 0.146 333.4)
XYZxyz(12.5267, 7.3303, 16.9715)
Luminance0.0733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A73 #2A7E35
analogous
#5F2A7E #7E2A73 #7E2A49
triadic
#7E2A73 #737E2A #2A737E
tetradic
#7E2A73 #7E5F2A #2A7E35 #2A497E
square
#7E2A73 #7E5F2A #2A7E35 #2A497E
split-complementary
#7E2A73 #497E2A #2A7E5F
monochromatic
#220B1F #501B49 #7E2A73 #AC399D #C85ABA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2A73#FFFFFF#000000##FFFFFF
##7E2A731.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)
#284575
Deuteranopia (green-blind)
#445171
Tritanopia (blue-blind)
#84314A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2a73;
/* rgb */ color: rgb(126, 42, 115);
/* oklch */ color: oklch(43.8% 0.146 333.4);
Tailwind
colors: {
  custom: {
    50: '#a66a9b',
    500: '#7e2a73',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a73;
$custom-light: #a66a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a73",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 115
  },
  "hsl": {
    "h": 307.857,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43755,
    "c": 0.14588,
    "h": 333.4
  },
  "luminance": 0.07329
}

Semantic roles & 50–950 ramp

primary
#7E2A73
secondary
#56AE62
accent
#DA614E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2A73

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

Preview Lab → · Contrast checker → · Palette generator →

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