#7D298F#7D298F

#7D298F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.171 H 320.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7D298F
RGBrgb(125, 41, 143)
HSLhsl(289, 55%, 36%)
HSVhsv(289, 71%, 56%)
CMYKcmyk(12.6%, 71.3%, 0%, 43.9%)
CIE-LABlab(33.84, 50.55, -39.36)
CIE-LCHlch(33.84, 64.06, 322.09°)
OKLaboklab(45.17% 0.1313 -0.1102)
OKLCHoklch(45.17% 0.171 320)
XYZxyz(14.2077, 7.9297, 26.7635)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D298F #3B8F29
analogous
#4A298F #7D298F #8F296E
triadic
#7D298F #8F7D29 #298F7D
tetradic
#7D298F #8F4A29 #3B8F29 #296E8F
square
#7D298F #8F4A29 #3B8F29 #296E8F
split-complementary
#7D298F #6E8F29 #298F4A
monochromatic
#2A0E30 #531B5F #7D298F #A737BF #BE61D2

Accessibility & contrast

On white

8.12
#7D298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7D298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D298F
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D298F#FFFFFF#000000##FFFFFF
##7D298F1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#32528D
Tritanopia (blue-blind)
#7D3C59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d298f;
/* rgb */ color: rgb(125, 41, 143);
/* oklch */ color: oklch(45.2% 0.171 320.0);
Tailwind
colors: {
  custom: {
    50: '#a66bb0',
    500: '#7d298f',
    950: '#000000',
  },
}
SCSS
$custom: #7d298f;
$custom-light: #a66bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d298f",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 289.412,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4517,
    "c": 0.17139,
    "h": 320
  },
  "luminance": 0.07929
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D298F

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

Preview Lab → · Contrast checker → · Palette generator →

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