#7E298B#7E298B

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

Color values

HEX#7E298B
RGBrgb(126, 41, 139)
HSLhsl(292, 54%, 35%)
HSVhsv(292, 71%, 55%)
CMYKcmyk(9.4%, 70.5%, 0%, 45.5%)
CIE-LABlab(33.74, 50.00, -37.03)
CIE-LCHlch(33.74, 62.22, 323.47°)
OKLaboklab(45.06% 0.1327 -0.1033)
OKLCHoklch(45.06% 0.168 322.1)
XYZxyz(14.0568, 7.8863, 25.2029)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E298B #368B29
analogous
#4D298B #7E298B #8B2967
triadic
#7E298B #8B7E29 #298B7E
tetradic
#7E298B #8B4D29 #368B29 #29678B
square
#7E298B #8B4D29 #368B29 #29678B
split-complementary
#7E298B #678B29 #298B4D
monochromatic
#280D2C #531B5C #7E298B #A937BA #C15FD0

Accessibility & contrast

On white

8.15
#7E298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E298B
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E298B#FFFFFF#000000##FFFFFF
##7E298B1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07498E
Deuteranopia (green-blind)
#365389
Tritanopia (blue-blind)
#803A57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e298b;
/* rgb */ color: rgb(126, 41, 139);
/* oklch */ color: oklch(45.1% 0.168 322.1);
Tailwind
colors: {
  custom: {
    50: '#a66bad',
    500: '#7e298b',
    950: '#000000',
  },
}
SCSS
$custom: #7e298b;
$custom-light: #a66bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e298b",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 292.041,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45057,
    "c": 0.16818,
    "h": 322.1
  },
  "luminance": 0.07886
}

Semantic roles & 50–950 ramp

primary
#7E298B
secondary
#67B55B
accent
#DE4A5E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E298B

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

Preview Lab → · Contrast checker → · Palette generator →

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