#7E2189#7E2189

#7E2189 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.176 H 323.3°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7E2189
RGBrgb(126, 33, 137)
HSLhsl(294, 61%, 33%)
HSVhsv(294, 76%, 54%)
CMYKcmyk(8%, 75.9%, 0%, 46.3%)
CIE-LABlab(32.55, 52.67, -37.71)
CIE-LCHlch(32.55, 64.77, 324.40°)
OKLaboklab(44.16% 0.1411 -0.1053)
OKLCHoklch(44.16% 0.176 323.3)
XYZxyz(13.6630, 7.3303, 24.3573)
Luminance0.0733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2189 #2C8921
analogous
#4A2189 #7E2189 #892160
triadic
#7E2189 #897E21 #21897E
tetradic
#7E2189 #894A21 #2C8921 #216089
square
#7E2189 #894A21 #2C8921 #216089
split-complementary
#7E2189 #608921 #21894A
monochromatic
#230926 #511558 #7E2189 #AB2DBA #C750D5

Accessibility & contrast

On white

8.52
#7E2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7E2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2189
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2189#FFFFFF#000000##FFFFFF
##7E21891.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468C
Deuteranopia (green-blind)
#335087
Tritanopia (blue-blind)
#803453
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2189;
/* rgb */ color: rgb(126, 33, 137);
/* oklch */ color: oklch(44.2% 0.176 323.3);
Tailwind
colors: {
  custom: {
    50: '#a767ac',
    500: '#7e2189',
    950: '#000000',
  },
}
SCSS
$custom: #7e2189;
$custom-light: #a767ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2189",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 293.654,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44161,
    "c": 0.176,
    "h": 323.3
  },
  "luminance": 0.07329
}

Semantic roles & 50–950 ramp

primary
#7E2189
secondary
#59B84E
accent
#E44455
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2189

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

Preview Lab → · Contrast checker → · Palette generator →

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