#7E2A88#7E2A88

#7E2A88 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.164 H 323.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7E2A88
RGBrgb(126, 42, 136)
HSLhsl(294, 53%, 35%)
HSVhsv(294, 69%, 53%)
CMYKcmyk(7.4%, 69.1%, 0%, 46.7%)
CIE-LABlab(33.71, 49.01, -35.23)
CIE-LCHlch(33.71, 60.36, 324.29°)
OKLaboklab(44.97% 0.1316 -0.0981)
OKLCHoklch(44.97% 0.164 323.3)
XYZxyz(13.8757, 7.8699, 24.0760)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A88 #34882A
analogous
#4F2A88 #7E2A88 #882A63
triadic
#7E2A88 #887E2A #2A887E
tetradic
#7E2A88 #884F2A #34882A #2A6388
square
#7E2A88 #884F2A #34882A #2A6388
split-complementary
#7E2A88 #63882A #2A884F
monochromatic
#270D2A #531C59 #7E2A88 #A938B7 #C25FCE

Accessibility & contrast

On white

8.16
#7E2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A88
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A88#FFFFFF#000000##FFFFFF
##7E2A881.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11498B
Deuteranopia (green-blind)
#395386
Tritanopia (blue-blind)
#803955
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2a88;
/* rgb */ color: rgb(126, 42, 136);
/* oklch */ color: oklch(45.0% 0.164 323.3);
Tailwind
colors: {
  custom: {
    50: '#a66bab',
    500: '#7e2a88',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a88;
$custom-light: #a66bab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a88",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 293.617,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44973,
    "c": 0.16415,
    "h": 323.3
  },
  "luminance": 0.07869
}

Semantic roles & 50–950 ramp

primary
#7E2A88
secondary
#64B35B
accent
#DC4C5B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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