#7D298C#7D298C

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

Color values

HEX#7D298C
RGBrgb(125, 41, 140)
HSLhsl(291, 55%, 35%)
HSVhsv(291, 71%, 55%)
CMYKcmyk(10.7%, 70.7%, 0%, 45.1%)
CIE-LABlab(33.65, 49.96, -37.81)
CIE-LCHlch(33.65, 62.65, 322.88°)
OKLaboklab(44.98% 0.1314 -0.1057)
OKLCHoklch(44.98% 0.169 321.2)
XYZxyz(13.9835, 7.8400, 25.5826)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D298C #388C29
analogous
#4B298C #7D298C #8C2969
triadic
#7D298C #8C7D29 #298C7D
tetradic
#7D298C #8C4B29 #388C29 #29698C
square
#7D298C #8C4B29 #388C29 #29698C
split-complementary
#7D298C #698C29 #298C4B
monochromatic
#280D2D #531B5D #7D298C #A737BB #BF5FD0

Accessibility & contrast

On white

8.18
#7D298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D298C
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D298C#FFFFFF#000000##FFFFFF
##7D298C1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03498F
Deuteranopia (green-blind)
#34528A
Tritanopia (blue-blind)
#7E3B57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d298c;
/* rgb */ color: rgb(125, 41, 140);
/* oklch */ color: oklch(45.0% 0.169 321.2);
Tailwind
colors: {
  custom: {
    50: '#a66bae',
    500: '#7d298c',
    950: '#000000',
  },
}
SCSS
$custom: #7d298c;
$custom-light: #a66bae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d298c",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 290.909,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44975,
    "c": 0.16863,
    "h": 321.2
  },
  "luminance": 0.07839
}

Semantic roles & 50–950 ramp

primary
#7D298C
secondary
#69B65B
accent
#DE4A60
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D298C

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

Preview Lab → · Contrast checker → · Palette generator →

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