#7E298E#7E298E

#7E298E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.171 H 320.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7E298E
RGBrgb(126, 41, 142)
HSLhsl(290, 55%, 36%)
HSVhsv(290, 71%, 56%)
CMYKcmyk(11.3%, 71.1%, 0%, 44.3%)
CIE-LABlab(33.93, 50.58, -38.58)
CIE-LCHlch(33.93, 63.62, 322.66°)
OKLaboklab(45.25% 0.1326 -0.1079)
OKLCHoklch(45.25% 0.171 320.9)
XYZxyz(14.2790, 7.9752, 26.3732)
Luminance0.0797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E298E #398E29
analogous
#4B298E #7E298E #8E296B
triadic
#7E298E #8E7E29 #298E7E
tetradic
#7E298E #8E4B29 #398E29 #296B8E
square
#7E298E #8E4B29 #398E29 #296B8E
split-complementary
#7E298E #6B8E29 #298E4B
monochromatic
#2A0E2F #541B5F #7E298E #A837BD #BF60D1

Accessibility & contrast

On white

8.09
#7E298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E298E
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E298E#FFFFFF#000000##FFFFFF
##7E298E1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#34538C
Tritanopia (blue-blind)
#7F3B58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e298e;
/* rgb */ color: rgb(126, 41, 142);
/* oklch */ color: oklch(45.3% 0.171 320.9);
Tailwind
colors: {
  custom: {
    50: '#a76baf',
    500: '#7e298e',
    950: '#000000',
  },
}
SCSS
$custom: #7e298e;
$custom-light: #a76baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e298e",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 290.495,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4525,
    "c": 0.17092,
    "h": 320.9
  },
  "luminance": 0.07974
}

Semantic roles & 50–950 ramp

primary
#7E298E
secondary
#6AB75C
accent
#DF4961
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E298E

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

Preview Lab → · Contrast checker → · Palette generator →

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