#7E2E9A#7E2E9A

#7E2E9A is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.176 H 315.9°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7E2E9A
RGBrgb(126, 46, 154)
HSLhsl(284, 54%, 39%)
HSVhsv(284, 70%, 60%)
CMYKcmyk(18.2%, 70.1%, 0%, 39.6%)
CIE-LABlab(35.45, 50.91, -43.49)
CIE-LCHlch(35.45, 66.95, 319.49°)
OKLaboklab(46.58% 0.1263 -0.1223)
OKLCHoklch(46.58% 0.176 315.9)
XYZxyz(15.4130, 8.7233, 31.4375)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E9A #4A9A2E
analogous
#482E9A #7E2E9A #9A2E80
triadic
#7E2E9A #9A7E2E #2E9A7E
tetradic
#7E2E9A #9A482E #4A9A2E #2E809A
square
#7E2E9A #9A482E #4A9A2E #2E809A
split-complementary
#7E2E9A #809A2E #2E9A48
monochromatic
#31123C #57206B #7E2E9A #A33FC6 #BA6FD4

Accessibility & contrast

On white

7.65
#7E2E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7E2E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E9A
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E9A#FFFFFF#000000##FFFFFF
##7E2E9A1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#2D5698
Tritanopia (blue-blind)
#7C4360
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2e9a;
/* rgb */ color: rgb(126, 46, 154);
/* oklch */ color: oklch(46.6% 0.176 315.9);
Tailwind
colors: {
  custom: {
    50: '#a76eb8',
    500: '#7e2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e9a;
$custom-light: #a76eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e9a",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 284.444,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46581,
    "c": 0.17582,
    "h": 315.9
  },
  "luminance": 0.08723
}

Semantic roles & 50–950 ramp

primary
#7E2E9A
secondary
#7EBB69
accent
#DD4A71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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