#7E2198#7E2198

#7E2198 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.189 H 317.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7E2198
RGBrgb(126, 33, 152)
HSLhsl(287, 64%, 36%)
HSVhsv(287, 78%, 60%)
CMYKcmyk(17.1%, 78.3%, 0%, 40.4%)
CIE-LABlab(33.54, 55.53, -45.33)
CIE-LCHlch(33.54, 71.69, 320.78°)
OKLaboklab(45.18% 0.1395 -0.1276)
OKLCHoklch(45.18% 0.189 317.5)
XYZxyz(14.8147, 7.7910, 30.4231)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2198 #3B9821
analogous
#432198 #7E2198 #982177
triadic
#7E2198 #987E21 #21987E
tetradic
#7E2198 #984321 #3B9821 #217798
square
#7E2198 #984321 #3B9821 #217798
split-complementary
#7E2198 #779821 #219843
monochromatic
#2B0B33 #541666 #7E2198 #A82CCA #BE59DB

Accessibility & contrast

On white

8.21
#7E2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2198
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2198#FFFFFF#000000##FFFFFF
##7E21981.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#255295
Tritanopia (blue-blind)
#7D3B5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2198;
/* rgb */ color: rgb(126, 33, 152);
/* oklch */ color: oklch(45.2% 0.189 317.5);
Tailwind
colors: {
  custom: {
    50: '#a768b7',
    500: '#7e2198',
    950: '#000000',
  },
}
SCSS
$custom: #7e2198;
$custom-light: #a768b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2198",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 286.891,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45185,
    "c": 0.18903,
    "h": 317.5
  },
  "luminance": 0.0779
}

Semantic roles & 50–950 ramp

primary
#7E2198
secondary
#6DBF56
accent
#E74065
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2198

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

Preview Lab → · Contrast checker → · Palette generator →

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