#7E2A8A#7E2A8A

#7E2A8A is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.166 H 322.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7E2A8A
RGBrgb(126, 42, 138)
HSLhsl(293, 53%, 35%)
HSVhsv(293, 70%, 54%)
CMYKcmyk(8.7%, 69.6%, 0%, 45.9%)
CIE-LABlab(33.83, 49.39, -36.28)
CIE-LCHlch(33.83, 61.28, 323.70°)
OKLaboklab(45.1% 0.1316 -0.1012)
OKLCHoklch(45.1% 0.166 322.4)
XYZxyz(14.0191, 7.9273, 24.8315)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A8A #368A2A
analogous
#4E2A8A #7E2A8A #8A2A66
triadic
#7E2A8A #8A7E2A #2A8A7E
tetradic
#7E2A8A #8A4E2A #368A2A #2A668A
square
#7E2A8A #8A4E2A #368A2A #2A668A
split-complementary
#7E2A8A #668A2A #2A8A4E
monochromatic
#280D2C #531C5B #7E2A8A #A938B9 #C160CF

Accessibility & contrast

On white

8.12
#7E2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A8A
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A8A#FFFFFF#000000##FFFFFF
##7E2A8A1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D498D
Deuteranopia (green-blind)
#375388
Tritanopia (blue-blind)
#803A57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2a8a;
/* rgb */ color: rgb(126, 42, 138);
/* oklch */ color: oklch(45.1% 0.166 322.4);
Tailwind
colors: {
  custom: {
    50: '#a66bad',
    500: '#7e2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a8a;
$custom-light: #a66bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a8a",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 292.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45099,
    "c": 0.16597,
    "h": 322.4
  },
  "luminance": 0.07927
}

Semantic roles & 50–950 ramp

primary
#7E2A8A
secondary
#67B45B
accent
#DD4B5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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