#7E2E89#7E2E89

#7E2E89 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.160 H 322.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7E2E89
RGBrgb(126, 46, 137)
HSLhsl(293, 50%, 36%)
HSVhsv(293, 66%, 54%)
CMYKcmyk(8%, 66.4%, 0%, 46.3%)
CIE-LABlab(34.39, 47.47, -34.77)
CIE-LCHlch(34.39, 58.84, 323.78°)
OKLaboklab(45.48% 0.1269 -0.0968)
OKLCHoklch(45.48% 0.16 322.7)
XYZxyz(14.0961, 8.1965, 24.5017)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E89 #39892E
analogous
#502E89 #7E2E89 #892E66
triadic
#7E2E89 #897E2E #2E897E
tetradic
#7E2E89 #89502E #39892E #2E6689
square
#7E2E89 #89502E #39892E #2E6689
split-complementary
#7E2E89 #66892E #2E8950
monochromatic
#2A0F2D #541F5B #7E2E89 #A83DB7 #BF66CC

Accessibility & contrast

On white

7.96
#7E2E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E2E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E89
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E89#FFFFFF#000000##FFFFFF
##7E2E891.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184B8C
Deuteranopia (green-blind)
#3B5487
Tritanopia (blue-blind)
#803D57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2e89;
/* rgb */ color: rgb(126, 46, 137);
/* oklch */ color: oklch(45.5% 0.160 322.7);
Tailwind
colors: {
  custom: {
    50: '#a66dac',
    500: '#7e2e89',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e89;
$custom-light: #a66dac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e89",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 292.747,
    "s": 49.727,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45481,
    "c": 0.15959,
    "h": 322.7
  },
  "luminance": 0.08196
}

Semantic roles & 50–950 ramp

primary
#7E2E89
secondary
#6AB260
accent
#D94F5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2E89

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

Preview Lab → · Contrast checker → · Palette generator →

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