#7D2F87#7D2F87

#7D2F87 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.3% C 0.156 H 323.0°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7D2F87
RGBrgb(125, 47, 135)
HSLhsl(293, 48%, 36%)
HSVhsv(293, 65%, 53%)
CMYKcmyk(7.4%, 65.2%, 0%, 47.1%)
CIE-LABlab(34.28, 46.37, -33.72)
CIE-LCHlch(34.28, 57.34, 323.98°)
OKLaboklab(45.33% 0.1244 -0.0938)
OKLCHoklch(45.33% 0.156 323)
XYZxyz(13.8467, 8.1430, 23.7594)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F87 #39872F
analogous
#512F87 #7D2F87 #872F65
triadic
#7D2F87 #877D2F #2F877D
tetradic
#7D2F87 #87512F #39872F #2F6587
square
#7D2F87 #87512F #39872F #2F6587
split-complementary
#7D2F87 #65872F #2F8751
monochromatic
#290F2C #531F5A #7D2F87 #A73FB4 #BF66CA

Accessibility & contrast

On white

7.99
#7D2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7D2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F87
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F87#FFFFFF#000000##FFFFFF
##7D2F871.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4B8A
Deuteranopia (green-blind)
#3C5485
Tritanopia (blue-blind)
#7F3D57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2f87;
/* rgb */ color: rgb(125, 47, 135);
/* oklch */ color: oklch(45.3% 0.156 323.0);
Tailwind
colors: {
  custom: {
    50: '#a56daa',
    500: '#7d2f87',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f87;
$custom-light: #a56daa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f87",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 293.182,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45333,
    "c": 0.15577,
    "h": 323
  },
  "luminance": 0.08142
}

Semantic roles & 50–950 ramp

primary
#7D2F87
secondary
#6AB161
accent
#D8505F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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