#7D2B98#7D2B98

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

Color values

HEX#7D2B98
RGBrgb(125, 43, 152)
HSLhsl(285, 56%, 38%)
HSVhsv(285, 72%, 60%)
CMYKcmyk(17.8%, 71.7%, 0%, 40.4%)
CIE-LABlab(34.71, 51.54, -43.46)
CIE-LCHlch(34.71, 67.42, 319.86°)
OKLaboklab(45.98% 0.1285 -0.1222)
OKLCHoklch(45.98% 0.177 316.4)
XYZxyz(14.9880, 8.3553, 30.5229)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2B98 #46982B
analogous
#472B98 #7D2B98 #982B7C
triadic
#7D2B98 #987D2B #2B987D
tetradic
#7D2B98 #98472B #46982B #2B7C98
square
#7D2B98 #98472B #46982B #2B7C98
split-complementary
#7D2B98 #7C982B #2B9847
monochromatic
#2F1039 #561E68 #7D2B98 #A439C7 #BA69D5

Accessibility & contrast

On white

7.86
#7D2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7D2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2B98
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2B98#FFFFFF#000000##FFFFFF
##7D2B981.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d2b98;
/* rgb */ color: rgb(125, 43, 152);
/* oklch */ color: oklch(46.0% 0.177 316.4);
Tailwind
colors: {
  custom: {
    50: '#a66cb7',
    500: '#7d2b98',
    950: '#000000',
  },
}
SCSS
$custom: #7d2b98;
$custom-light: #a66cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2b98",
  "rgb": {
    "r": 125,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 285.138,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45983,
    "c": 0.17731,
    "h": 316.4
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#7D2B98
secondary
#79BB64
accent
#DF496E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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