#7E298C#7E298C

#7E298C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.169 H 321.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7E298C
RGBrgb(126, 41, 140)
HSLhsl(292, 55%, 35%)
HSVhsv(292, 71%, 55%)
CMYKcmyk(10%, 70.7%, 0%, 45.1%)
CIE-LABlab(33.81, 50.19, -37.55)
CIE-LCHlch(33.81, 62.68, 323.20°)
OKLaboklab(45.12% 0.1327 -0.1049)
OKLCHoklch(45.12% 0.169 321.7)
XYZxyz(14.1302, 7.9157, 25.5895)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E298C #378C29
analogous
#4C298C #7E298C #8C2968
triadic
#7E298C #8C7E29 #298C7E
tetradic
#7E298C #8C4C29 #378C29 #29688C
square
#7E298C #8C4C29 #378C29 #29688C
split-complementary
#7E298C #688C29 #298C4C
monochromatic
#290D2D #531B5D #7E298C #A937BB #C05FD0

Accessibility & contrast

On white

8.13
#7E298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E298C
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E298C#FFFFFF#000000##FFFFFF
##7E298C1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05498F
Deuteranopia (green-blind)
#35538A
Tritanopia (blue-blind)
#7F3A57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e298c;
/* rgb */ color: rgb(126, 41, 140);
/* oklch */ color: oklch(45.1% 0.169 321.7);
Tailwind
colors: {
  custom: {
    50: '#a76bae',
    500: '#7e298c',
    950: '#000000',
  },
}
SCSS
$custom: #7e298c;
$custom-light: #a76bae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e298c",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 291.515,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45121,
    "c": 0.1691,
    "h": 321.7
  },
  "luminance": 0.07915
}

Semantic roles & 50–950 ramp

primary
#7E298C
secondary
#68B65B
accent
#DE4A5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E298C

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

Preview Lab → · Contrast checker → · Palette generator →

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