#7D2D98#7D2D98

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

Color values

HEX#7D2D98
RGBrgb(125, 45, 152)
HSLhsl(285, 54%, 39%)
HSVhsv(285, 70%, 60%)
CMYKcmyk(17.8%, 70.4%, 0%, 40.4%)
CIE-LABlab(35.01, 50.70, -42.98)
CIE-LCHlch(35.01, 66.46, 319.71°)
OKLaboklab(46.2% 0.1263 -0.1208)
OKLCHoklch(46.2% 0.175 316.3)
XYZxyz(15.0625, 8.5043, 30.5477)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2D98 #48982D
analogous
#472D98 #7D2D98 #982D7D
triadic
#7D2D98 #987D2D #2D987D
tetradic
#7D2D98 #98472D #48982D #2D7D98
square
#7D2D98 #98472D #48982D #2D7D98
split-complementary
#7D2D98 #7D982D #2D9847
monochromatic
#2F113A #561F69 #7D2D98 #A33DC5 #B96CD3

Accessibility & contrast

On white

7.78
#7D2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7D2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2D98
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2D98#FFFFFF#000000##FFFFFF
##7D2D981.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d2d98;
/* rgb */ color: rgb(125, 45, 152);
/* oklch */ color: oklch(46.2% 0.175 316.3);
Tailwind
colors: {
  custom: {
    50: '#a66db7',
    500: '#7d2d98',
    950: '#000000',
  },
}
SCSS
$custom: #7d2d98;
$custom-light: #a66db7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2d98",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 284.86,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46197,
    "c": 0.17478,
    "h": 316.3
  },
  "luminance": 0.08504
}

Semantic roles & 50–950 ramp

primary
#7D2D98
secondary
#7CBA66
accent
#DE4A6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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