#7D2899#7D2899

#7D2899 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.182 H 316.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7D2899
RGBrgb(125, 40, 153)
HSLhsl(285, 59%, 38%)
HSVhsv(285, 74%, 60%)
CMYKcmyk(18.3%, 73.9%, 0%, 40%)
CIE-LABlab(34.35, 52.96, -44.65)
CIE-LCHlch(34.35, 69.27, 319.87°)
OKLaboklab(45.75% 0.1315 -0.1257)
OKLCHoklch(45.75% 0.182 316.3)
XYZxyz(14.9651, 8.1781, 30.9210)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2899 #449928
analogous
#452899 #7D2899 #99287C
triadic
#7D2899 #997D28 #28997D
tetradic
#7D2899 #994528 #449928 #287C99
square
#7D2899 #994528 #449928 #287C99
split-complementary
#7D2899 #7C9928 #289945
monochromatic
#2E0F38 #551B68 #7D2899 #A535CA #BA65D7

Accessibility & contrast

On white

7.97
#7D2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7D2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2899
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2899#FFFFFF#000000##FFFFFF
##7D28991.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#285396
Tritanopia (blue-blind)
#7B405E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2899;
/* rgb */ color: rgb(125, 40, 153);
/* oklch */ color: oklch(45.7% 0.182 316.3);
Tailwind
colors: {
  custom: {
    50: '#a66bb8',
    500: '#7d2899',
    950: '#000000',
  },
}
SCSS
$custom: #7d2899;
$custom-light: #a66bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2899",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 285.133,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45747,
    "c": 0.18189,
    "h": 316.3
  },
  "luminance": 0.08177
}

Semantic roles & 50–950 ramp

primary
#7D2899
secondary
#77BD60
accent
#E2466D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2899

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

Preview Lab → · Contrast checker → · Palette generator →

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