#7E2A89#7E2A89

#7E2A89 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.165 H 322.9°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7E2A89
RGBrgb(126, 42, 137)
HSLhsl(293, 53%, 35%)
HSVhsv(293, 69%, 54%)
CMYKcmyk(8%, 69.3%, 0%, 46.3%)
CIE-LABlab(33.77, 49.20, -35.76)
CIE-LCHlch(33.77, 60.82, 323.99°)
OKLaboklab(45.04% 0.1316 -0.0996)
OKLCHoklch(45.04% 0.165 322.9)
XYZxyz(13.9471, 7.8985, 24.4520)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A89 #35892A
analogous
#4F2A89 #7E2A89 #892A64
triadic
#7E2A89 #897E2A #2A897E
tetradic
#7E2A89 #894F2A #35892A #2A6489
square
#7E2A89 #894F2A #35892A #2A6489
split-complementary
#7E2A89 #64892A #2A894F
monochromatic
#280D2B #531C5A #7E2A89 #A938B8 #C15FCE

Accessibility & contrast

On white

8.14
#7E2A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E2A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A89
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A89#FFFFFF#000000##FFFFFF
##7E2A891.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F498C
Deuteranopia (green-blind)
#385387
Tritanopia (blue-blind)
#803A56
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2a89;
/* rgb */ color: rgb(126, 42, 137);
/* oklch */ color: oklch(45.0% 0.165 322.9);
Tailwind
colors: {
  custom: {
    50: '#a66bac',
    500: '#7e2a89',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a89;
$custom-light: #a66bac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a89",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 293.053,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45036,
    "c": 0.16506,
    "h": 322.9
  },
  "luminance": 0.07898
}

Semantic roles & 50–950 ramp

primary
#7E2A89
secondary
#65B45B
accent
#DC4B5C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2A89

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

Preview Lab → · Contrast checker → · Palette generator →

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