#7C298E#7C298E

#7C298E is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.170 H 319.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7C298E
RGBrgb(124, 41, 142)
HSLhsl(289, 55%, 36%)
HSVhsv(289, 71%, 56%)
CMYKcmyk(12.7%, 71.1%, 0%, 44.3%)
CIE-LABlab(33.61, 50.12, -39.11)
CIE-LCHlch(33.61, 63.57, 322.04°)
OKLaboklab(44.96% 0.1301 -0.1095)
OKLCHoklch(44.96% 0.17 319.9)
XYZxyz(13.9870, 7.8246, 26.3595)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C298E #3B8E29
analogous
#49298E #7C298E #8E296D
triadic
#7C298E #8E7C29 #298E7C
tetradic
#7C298E #8E4929 #3B8E29 #296D8E
square
#7C298E #8E4929 #3B8E29 #296D8E
split-complementary
#7C298E #6D8E29 #298E49
monochromatic
#290E2F #531B5F #7C298E #A537BD #BD60D1

Accessibility & contrast

On white

8.19
#7C298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7C298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C298E
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C298E#FFFFFF#000000##FFFFFF
##7C298E1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#32528C
Tritanopia (blue-blind)
#7C3C58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c298e;
/* rgb */ color: rgb(124, 41, 142);
/* oklch */ color: oklch(45.0% 0.170 319.9);
Tailwind
colors: {
  custom: {
    50: '#a56aaf',
    500: '#7c298e',
    950: '#000000',
  },
}
SCSS
$custom: #7c298e;
$custom-light: #a56aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c298e",
  "rgb": {
    "r": 124,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 289.307,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4496,
    "c": 0.17002,
    "h": 319.9
  },
  "luminance": 0.07824
}

Semantic roles & 50–950 ramp

primary
#7C298E
secondary
#6CB75C
accent
#DF4964
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C298E

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

Preview Lab → · Contrast checker → · Palette generator →

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