#7D2C98#7D2C98

#7D2C98 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.176 H 316.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7D2C98
RGBrgb(125, 44, 152)
HSLhsl(285, 55%, 38%)
HSVhsv(285, 71%, 60%)
CMYKcmyk(17.8%, 71.1%, 0%, 40.4%)
CIE-LABlab(34.86, 51.12, -43.22)
CIE-LCHlch(34.86, 66.94, 319.79°)
OKLaboklab(46.09% 0.1274 -0.1215)
OKLCHoklch(46.09% 0.176 316.4)
XYZxyz(15.0248, 8.4289, 30.5352)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2C98 #47982C
analogous
#472C98 #7D2C98 #982C7D
triadic
#7D2C98 #987D2C #2C987D
tetradic
#7D2C98 #98472C #47982C #2C7D98
square
#7D2C98 #98472C #47982C #2C7D98
split-complementary
#7D2C98 #7D982C #2C9847
monochromatic
#2F1139 #561E69 #7D2C98 #A33BC6 #BA6AD4

Accessibility & contrast

On white

7.82
#7D2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2C98
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2C98#FFFFFF#000000##FFFFFF
##7D2C981.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d2c98;
/* rgb */ color: rgb(125, 44, 152);
/* oklch */ color: oklch(46.1% 0.176 316.4);
Tailwind
colors: {
  custom: {
    50: '#a66cb7',
    500: '#7d2c98',
    950: '#000000',
  },
}
SCSS
$custom: #7d2c98;
$custom-light: #a66cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2c98",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 285,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46089,
    "c": 0.17606,
    "h": 316.4
  },
  "luminance": 0.08428
}

Semantic roles & 50–950 ramp

primary
#7D2C98
secondary
#7ABB65
accent
#DE496F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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