#7E2298#7E2298

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

Color values

HEX#7E2298
RGBrgb(126, 34, 152)
HSLhsl(287, 63%, 36%)
HSVhsv(287, 78%, 60%)
CMYKcmyk(17.1%, 77.6%, 0%, 40.4%)
CIE-LABlab(33.66, 55.19, -45.14)
CIE-LCHlch(33.66, 71.30, 320.72°)
OKLaboklab(45.27% 0.1386 -0.127)
OKLCHoklch(45.27% 0.188 317.5)
XYZxyz(14.8429, 7.8473, 30.4325)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2298 #3C9822
analogous
#432298 #7E2298 #982277
triadic
#7E2298 #987E22 #22987E
tetradic
#7E2298 #984322 #3C9822 #227798
square
#7E2298 #984322 #3C9822 #227798
split-complementary
#7E2298 #779822 #229843
monochromatic
#2B0C34 #551766 #7E2298 #A72DCA #BE5ADA

Accessibility & contrast

On white

8.17
#7E2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2298
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2298#FFFFFF#000000##FFFFFF
##7E22981.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#255295
Tritanopia (blue-blind)
#7D3C5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2298;
/* rgb */ color: rgb(126, 34, 152);
/* oklch */ color: oklch(45.3% 0.188 317.5);
Tailwind
colors: {
  custom: {
    50: '#a768b7',
    500: '#7e2298',
    950: '#000000',
  },
}
SCSS
$custom: #7e2298;
$custom-light: #a768b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2298",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 286.78,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45269,
    "c": 0.18801,
    "h": 317.5
  },
  "luminance": 0.07847
}

Semantic roles & 50–950 ramp

primary
#7E2298
secondary
#6EBE57
accent
#E64166
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2298

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

Preview Lab → · Contrast checker → · Palette generator →

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