#7E2A96#7E2A96

#7E2A96 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.177 H 317.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7E2A96
RGBrgb(126, 42, 150)
HSLhsl(287, 56%, 38%)
HSVhsv(287, 72%, 59%)
CMYKcmyk(16%, 72%, 0%, 41.2%)
CIE-LABlab(34.59, 51.77, -42.43)
CIE-LCHlch(34.59, 66.93, 320.66°)
OKLaboklab(45.88% 0.131 -0.1191)
OKLCHoklch(45.88% 0.177 317.7)
XYZxyz(14.9364, 8.2942, 29.6624)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A96 #42962A
analogous
#482A96 #7E2A96 #962A78
triadic
#7E2A96 #967E2A #2A967E
tetradic
#7E2A96 #96482A #42962A #2A7896
square
#7E2A96 #96482A #42962A #2A7896
split-complementary
#7E2A96 #78962A #2A9648
monochromatic
#2E0F36 #561D66 #7E2A96 #A637C6 #BC66D4

Accessibility & contrast

On white

7.90
#7E2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A96
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A96#FFFFFF#000000##FFFFFF
##7E2A961.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#2E5494
Tritanopia (blue-blind)
#7D3F5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2a96;
/* rgb */ color: rgb(126, 42, 150);
/* oklch */ color: oklch(45.9% 0.177 317.7);
Tailwind
colors: {
  custom: {
    50: '#a76cb5',
    500: '#7e2a96',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a96;
$custom-light: #a76cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a96",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 286.667,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45884,
    "c": 0.17707,
    "h": 317.7
  },
  "luminance": 0.08294
}

Semantic roles & 50–950 ramp

primary
#7E2A96
secondary
#75BA61
accent
#E0486A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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