#7D2F97#7D2F97

#7D2F97 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.171 H 316.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7D2F97
RGBrgb(125, 47, 151)
HSLhsl(285, 53%, 39%)
HSVhsv(285, 69%, 59%)
CMYKcmyk(17.2%, 68.9%, 0%, 40.8%)
CIE-LABlab(35.26, 49.62, -41.97)
CIE-LCHlch(35.26, 64.99, 319.77°)
OKLaboklab(46.35% 0.1241 -0.1179)
OKLCHoklch(46.35% 0.171 316.5)
XYZxyz(15.0590, 8.6280, 30.1443)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F97 #49972F
analogous
#492F97 #7D2F97 #972F7D
triadic
#7D2F97 #977D2F #2F977D
tetradic
#7D2F97 #97492F #49972F #2F7D97
square
#7D2F97 #97492F #49972F #2F7D97
split-complementary
#7D2F97 #7D972F #2F9749
monochromatic
#30123A #562068 #7D2F97 #A340C3 #B96ED2

Accessibility & contrast

On white

7.71
#7D2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7D2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F97
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F97#FFFFFF#000000##FFFFFF
##7D2F971.007.712.737.71
#FFFFFF7.711.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#305595
Tritanopia (blue-blind)
#7C435F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d2f97;
/* rgb */ color: rgb(125, 47, 151);
/* oklch */ color: oklch(46.4% 0.171 316.5);
Tailwind
colors: {
  custom: {
    50: '#a66eb6',
    500: '#7d2f97',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f97;
$custom-light: #a66eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f97",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 285,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46353,
    "c": 0.17118,
    "h": 316.5
  },
  "luminance": 0.08627
}

Semantic roles & 50–950 ramp

primary
#7D2F97
secondary
#7DB968
accent
#DC4C70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7D2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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