#7D2C99#7D2C99

#7D2C99 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.177 H 316.0°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7D2C99
RGBrgb(125, 44, 153)
HSLhsl(285, 55%, 39%)
HSVhsv(285, 71%, 60%)
CMYKcmyk(18.3%, 71.2%, 0%, 40%)
CIE-LABlab(34.93, 51.33, -43.72)
CIE-LCHlch(34.93, 67.43, 319.58°)
OKLaboklab(46.16% 0.1273 -0.123)
OKLCHoklch(46.16% 0.177 316)
XYZxyz(15.1070, 8.4618, 30.9683)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2C99 #48992C
analogous
#462C99 #7D2C99 #992C7E
triadic
#7D2C99 #997D2C #2C997D
tetradic
#7D2C99 #99462C #48992C #2C7E99
square
#7D2C99 #99462C #48992C #2C7E99
split-complementary
#7D2C99 #7E992C #2C9946
monochromatic
#2F113A #561E69 #7D2C99 #A33BC7 #B96BD4

Accessibility & contrast

On white

7.80
#7D2C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7D2C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2C99
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2C99#FFFFFF#000000##FFFFFF
##7D2C991.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#2B5497
Tritanopia (blue-blind)
#7B425F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d2c99;
/* rgb */ color: rgb(125, 44, 153);
/* oklch */ color: oklch(46.2% 0.177 316.0);
Tailwind
colors: {
  custom: {
    50: '#a66db8',
    500: '#7d2c99',
    950: '#000000',
  },
}
SCSS
$custom: #7d2c99;
$custom-light: #a66db8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2c99",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 284.587,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46158,
    "c": 0.17701,
    "h": 316
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

primary
#7D2C99
secondary
#7CBB66
accent
#DF4970
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2C99

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

Preview Lab → · Contrast checker → · Palette generator →

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