#7D298D#7D298D

#7D298D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.170 H 320.8°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7D298D
RGBrgb(125, 41, 141)
HSLhsl(290, 55%, 36%)
HSVhsv(290, 71%, 55%)
CMYKcmyk(11.3%, 70.9%, 0%, 44.7%)
CIE-LABlab(33.71, 50.15, -38.33)
CIE-LCHlch(33.71, 63.12, 322.61°)
OKLaboklab(45.04% 0.1314 -0.1072)
OKLCHoklch(45.04% 0.17 320.8)
XYZxyz(14.0575, 7.8697, 25.9727)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D298D #398D29
analogous
#4B298D #7D298D #8D296B
triadic
#7D298D #8D7D29 #298D7D
tetradic
#7D298D #8D4B29 #398D29 #296B8D
square
#7D298D #8D4B29 #398D29 #296B8D
split-complementary
#7D298D #6B8D29 #298D4B
monochromatic
#290D2E #531B5E #7D298D #A737BC #BF60D1

Accessibility & contrast

On white

8.16
#7D298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D298D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D298D#FFFFFF#000000##FFFFFF
##7D298D1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#7E3B58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d298d;
/* rgb */ color: rgb(125, 41, 141);
/* oklch */ color: oklch(45.0% 0.170 320.8);
Tailwind
colors: {
  custom: {
    50: '#a66baf',
    500: '#7d298d',
    950: '#000000',
  },
}
SCSS
$custom: #7d298d;
$custom-light: #a66baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d298d",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 290.4,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45039,
    "c": 0.16955,
    "h": 320.8
  },
  "luminance": 0.07869
}

Semantic roles & 50–950 ramp

primary
#7D298D
secondary
#6AB65B
accent
#DE4A61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D298D

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

Preview Lab → · Contrast checker → · Palette generator →

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