#7D298B#7D298B

#7D298B is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.168 H 321.6°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7D298B
RGBrgb(125, 41, 139)
HSLhsl(291, 54%, 35%)
HSVhsv(291, 71%, 55%)
CMYKcmyk(10.1%, 70.5%, 0%, 45.5%)
CIE-LABlab(33.59, 49.76, -37.30)
CIE-LCHlch(33.59, 62.19, 323.15°)
OKLaboklab(44.91% 0.1315 -0.1041)
OKLCHoklch(44.91% 0.168 321.6)
XYZxyz(13.9101, 7.8107, 25.1960)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D298B #378B29
analogous
#4C298B #7D298B #8B2968
triadic
#7D298B #8B7D29 #298B7D
tetradic
#7D298B #8B4C29 #378B29 #29688B
square
#7D298B #8B4C29 #378B29 #29688B
split-complementary
#7D298B #688B29 #298B4C
monochromatic
#280D2C #521B5C #7D298B #A837BA #C05FD0

Accessibility & contrast

On white

8.20
#7D298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D298B
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D298B#FFFFFF#000000##FFFFFF
##7D298B1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06498E
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#7E3A57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d298b;
/* rgb */ color: rgb(125, 41, 139);
/* oklch */ color: oklch(44.9% 0.168 321.6);
Tailwind
colors: {
  custom: {
    50: '#a66aad',
    500: '#7d298b',
    950: '#000000',
  },
}
SCSS
$custom: #7d298b;
$custom-light: #a66aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d298b",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 291.429,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4491,
    "c": 0.16771,
    "h": 321.6
  },
  "luminance": 0.0781
}

Semantic roles & 50–950 ramp

primary
#7D298B
secondary
#67B55B
accent
#DE4A5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D298B

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

Preview Lab → · Contrast checker → · Palette generator →

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