#7E2A8E#7E2A8E

#7E2A8E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.170 H 320.8°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7E2A8E
RGBrgb(126, 42, 142)
HSLhsl(290, 54%, 36%)
HSVhsv(290, 70%, 56%)
CMYKcmyk(11.3%, 70.4%, 0%, 44.3%)
CIE-LABlab(34.08, 50.17, -38.35)
CIE-LCHlch(34.08, 63.15, 322.61°)
OKLaboklab(45.35% 0.1315 -0.1072)
OKLCHoklch(45.35% 0.17 320.8)
XYZxyz(14.3141, 8.0453, 26.3849)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A8E #3A8E2A
analogous
#4C2A8E #7E2A8E #8E2A6C
triadic
#7E2A8E #8E7E2A #2A8E7E
tetradic
#7E2A8E #8E4C2A #3A8E2A #2A6C8E
square
#7E2A8E #8E4C2A #3A8E2A #2A6C8E
split-complementary
#7E2A8E #6C8E2A #2A8E4C
monochromatic
#2A0E30 #541C5F #7E2A8E #A838BD #BF62D1

Accessibility & contrast

On white

8.05
#7E2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E2A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A8E
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A8E#FFFFFF#000000##FFFFFF
##7E2A8E1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A91
Deuteranopia (green-blind)
#34538C
Tritanopia (blue-blind)
#7F3C59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2a8e;
/* rgb */ color: rgb(126, 42, 142);
/* oklch */ color: oklch(45.4% 0.170 320.8);
Tailwind
colors: {
  custom: {
    50: '#a76baf',
    500: '#7e2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a8e;
$custom-light: #a76baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a8e",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 290.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45354,
    "c": 0.16964,
    "h": 320.8
  },
  "luminance": 0.08045
}

Semantic roles & 50–950 ramp

primary
#7E2A8E
secondary
#6CB65D
accent
#DE4A62
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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