#7E298A#7E298A

#7E298A is a dark, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.167 H 322.5°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7E298A
RGBrgb(126, 41, 138)
HSLhsl(293, 54%, 35%)
HSVhsv(293, 70%, 54%)
CMYKcmyk(8.7%, 70.3%, 0%, 45.9%)
CIE-LABlab(33.68, 49.80, -36.51)
CIE-LCHlch(33.68, 61.75, 323.75°)
OKLaboklab(44.99% 0.1327 -0.1018)
OKLCHoklch(44.99% 0.167 322.5)
XYZxyz(13.9841, 7.8573, 24.8198)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E298A #358A29
analogous
#4D298A #7E298A #8A2966
triadic
#7E298A #8A7E29 #298A7E
tetradic
#7E298A #8A4D29 #358A29 #29668A
square
#7E298A #8A4D29 #358A29 #29668A
split-complementary
#7E298A #668A29 #298A4D
monochromatic
#280D2C #531B5B #7E298A #A937B9 #C15ECF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E298A#FFFFFF#000000##FFFFFF
##7E298A1.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)
#0A498D
Deuteranopia (green-blind)
#375288
Tritanopia (blue-blind)
#803A56
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e298a;
/* rgb */ color: rgb(126, 41, 138);
/* oklch */ color: oklch(45.0% 0.167 322.5);
Tailwind
colors: {
  custom: {
    50: '#a66bad',
    500: '#7e298a',
    950: '#000000',
  },
}
SCSS
$custom: #7e298a;
$custom-light: #a66bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e298a",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 292.577,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44993,
    "c": 0.16728,
    "h": 322.5
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#7E298A
secondary
#65B55A
accent
#DE4A5C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E298A

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

Preview Lab → · Contrast checker → · Palette generator →

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