#7E2E8A#7E2E8A

#7E2E8A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.161 H 322.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7E2E8A
RGBrgb(126, 46, 138)
HSLhsl(292, 50%, 36%)
HSVhsv(292, 67%, 54%)
CMYKcmyk(8.7%, 66.7%, 0%, 45.9%)
CIE-LABlab(34.45, 47.66, -35.30)
CIE-LCHlch(34.45, 59.31, 323.48°)
OKLaboklab(45.54% 0.1269 -0.0983)
OKLCHoklch(45.54% 0.161 322.2)
XYZxyz(14.1681, 8.2253, 24.8812)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E8A #3A8A2E
analogous
#502E8A #7E2E8A #8A2E68
triadic
#7E2E8A #8A7E2E #2E8A7E
tetradic
#7E2E8A #8A502E #3A8A2E #2E688A
square
#7E2E8A #8A502E #3A8A2E #2E688A
split-complementary
#7E2E8A #688A2E #2E8A50
monochromatic
#2A0F2E #541F5C #7E2E8A #A83DB8 #BF66CC

Accessibility & contrast

On white

7.94
#7E2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E2E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E8A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E8A#FFFFFF#000000##FFFFFF
##7E2E8A1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174B8D
Deuteranopia (green-blind)
#3A5488
Tritanopia (blue-blind)
#803D58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2e8a;
/* rgb */ color: rgb(126, 46, 138);
/* oklch */ color: oklch(45.5% 0.161 322.2);
Tailwind
colors: {
  custom: {
    50: '#a66dac',
    500: '#7e2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e8a;
$custom-light: #a66dac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e8a",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 292.174,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45543,
    "c": 0.16053,
    "h": 322.2
  },
  "luminance": 0.08225
}

Semantic roles & 50–950 ramp

primary
#7E2E8A
secondary
#6CB361
accent
#DA4E60
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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