#7D2C97#7D2C97

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

Color values

HEX#7D2C97
RGBrgb(125, 44, 151)
HSLhsl(285, 55%, 38%)
HSVhsv(285, 71%, 59%)
CMYKcmyk(17.2%, 70.9%, 0%, 40.8%)
CIE-LABlab(34.80, 50.92, -42.72)
CIE-LCHlch(34.80, 66.46, 320.00°)
OKLaboklab(46.02% 0.1275 -0.12)
OKLCHoklch(46.02% 0.175 316.7)
XYZxyz(14.9432, 8.3963, 30.1057)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2C97 #46972C
analogous
#482C97 #7D2C97 #972C7B
triadic
#7D2C97 #977D2C #2C977D
tetradic
#7D2C97 #97482C #46972C #2C7B97
square
#7D2C97 #97482C #46972C #2C7B97
split-complementary
#7D2C97 #7B972C #2C9748
monochromatic
#2F1038 #561E68 #7D2C97 #A43AC6 #BA6AD4

Accessibility & contrast

On white

7.84
#7D2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7D2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2C97
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2C97#FFFFFF#000000##FFFFFF
##7D2C971.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#2D5495
Tritanopia (blue-blind)
#7C415E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d2c97;
/* rgb */ color: rgb(125, 44, 151);
/* oklch */ color: oklch(46.0% 0.175 316.7);
Tailwind
colors: {
  custom: {
    50: '#a66cb6',
    500: '#7d2c97',
    950: '#000000',
  },
}
SCSS
$custom: #7d2c97;
$custom-light: #a66cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2c97",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 285.421,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46021,
    "c": 0.1751,
    "h": 316.7
  },
  "luminance": 0.08396
}

Semantic roles & 50–950 ramp

primary
#7D2C97
secondary
#79BA65
accent
#DE4A6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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