#7D298E#7D298E

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

Color values

HEX#7D298E
RGBrgb(125, 41, 142)
HSLhsl(290, 55%, 36%)
HSVhsv(290, 71%, 56%)
CMYKcmyk(12%, 71.1%, 0%, 44.3%)
CIE-LABlab(33.77, 50.35, -38.84)
CIE-LCHlch(33.77, 63.59, 322.35°)
OKLaboklab(45.11% 0.1313 -0.1087)
OKLCHoklch(45.11% 0.17 320.4)
XYZxyz(14.1323, 7.8996, 26.3663)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D298E #3A8E29
analogous
#4A298E #7D298E #8E296C
triadic
#7D298E #8E7D29 #298E7D
tetradic
#7D298E #8E4A29 #3A8E29 #296C8E
square
#7D298E #8E4A29 #3A8E29 #296C8E
split-complementary
#7D298E #6C8E29 #298E4A
monochromatic
#290E2F #531B5F #7D298E #A737BD #BE60D1

Accessibility & contrast

On white

8.14
#7D298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7D298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D298E
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D298E#FFFFFF#000000##FFFFFF
##7D298E1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#33528C
Tritanopia (blue-blind)
#7E3C58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d298e;
/* rgb */ color: rgb(125, 41, 142);
/* oklch */ color: oklch(45.1% 0.170 320.4);
Tailwind
colors: {
  custom: {
    50: '#a66baf',
    500: '#7d298e',
    950: '#000000',
  },
}
SCSS
$custom: #7d298e;
$custom-light: #a66baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d298e",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 289.901,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45105,
    "c": 0.17047,
    "h": 320.4
  },
  "luminance": 0.07899
}

Semantic roles & 50–950 ramp

primary
#7D298E
secondary
#6BB75C
accent
#DF4962
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D298E

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

Preview Lab → · Contrast checker → · Palette generator →

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