#7E2A9E#7E2A9E

#7E2A9E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.185 H 314.8°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7E2A9E
RGBrgb(126, 42, 158)
HSLhsl(283, 58%, 39%)
HSVhsv(283, 73%, 62%)
CMYKcmyk(20.3%, 73.4%, 0%, 38%)
CIE-LABlab(35.12, 53.41, -46.43)
CIE-LCHlch(35.12, 70.77, 319.00°)
OKLaboklab(46.44% 0.1302 -0.1309)
OKLCHoklch(46.44% 0.185 314.8)
XYZxyz(15.6027, 8.5607, 33.1716)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A9E #4A9E2A
analogous
#442A9E #7E2A9E #9E2A84
triadic
#7E2A9E #9E7E2A #2A9E7E
tetradic
#7E2A9E #9E442A #4A9E2A #2A849E
square
#7E2A9E #9E442A #4A9E2A #2A849E
split-complementary
#7E2A9E #849E2A #2A9E44
monochromatic
#31103D #571D6E #7E2A9E #A33ACB #BA6BD8

Accessibility & contrast

On white

7.74
#7E2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A9E
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A9E#FFFFFF#000000##FFFFFF
##7E2A9E1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#25559B
Tritanopia (blue-blind)
#7B4362
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2a9e;
/* rgb */ color: rgb(126, 42, 158);
/* oklch */ color: oklch(46.4% 0.185 314.8);
Tailwind
colors: {
  custom: {
    50: '#a76cbb',
    500: '#7e2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a9e;
$custom-light: #a76cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a9e",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 283.448,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46437,
    "c": 0.1846,
    "h": 314.8
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

primary
#7E2A9E
secondary
#7EBE66
accent
#E14771
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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