#7E2188#7E2188

#7E2188 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.175 H 323.7°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#7E2188
RGBrgb(126, 33, 136)
HSLhsl(294, 61%, 33%)
HSVhsv(294, 76%, 53%)
CMYKcmyk(7.4%, 75.7%, 0%, 46.7%)
CIE-LABlab(32.48, 52.48, -37.19)
CIE-LCHlch(32.48, 64.32, 324.68°)
OKLaboklab(44.1% 0.1411 -0.1037)
OKLCHoklch(44.1% 0.175 323.7)
XYZxyz(13.5916, 7.3017, 23.9813)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2188 #2B8821
analogous
#4A2188 #7E2188 #88215E
triadic
#7E2188 #887E21 #21887E
tetradic
#7E2188 #884A21 #2B8821 #215E88
square
#7E2188 #884A21 #2B8821 #215E88
split-complementary
#7E2188 #5E8821 #21884A
monochromatic
#230925 #501557 #7E2188 #AC2DB9 #C74FD4

Accessibility & contrast

On white

8.54
#7E2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7E2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2188
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2188#FFFFFF#000000##FFFFFF
##7E21881.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#335086
Tritanopia (blue-blind)
#803453
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2188;
/* rgb */ color: rgb(126, 33, 136);
/* oklch */ color: oklch(44.1% 0.175 323.7);
Tailwind
colors: {
  custom: {
    50: '#a767ab',
    500: '#7e2188',
    950: '#000000',
  },
}
SCSS
$custom: #7e2188;
$custom-light: #a767ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2188",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 294.175,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44095,
    "c": 0.17515,
    "h": 323.7
  },
  "luminance": 0.07301
}

Semantic roles & 50–950 ramp

primary
#7E2188
secondary
#58B84D
accent
#E44453
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E2188

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

Preview Lab → · Contrast checker → · Palette generator →

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