#7D2F88#7D2F88

#7D2F88 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.157 H 322.5°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7D2F88
RGBrgb(125, 47, 136)
HSLhsl(293, 49%, 36%)
HSVhsv(293, 65%, 53%)
CMYKcmyk(8.1%, 65.4%, 0%, 46.7%)
CIE-LABlab(34.34, 46.57, -34.25)
CIE-LCHlch(34.34, 57.80, 323.67°)
OKLaboklab(45.39% 0.1244 -0.0953)
OKLCHoklch(45.39% 0.157 322.5)
XYZxyz(13.9174, 8.1713, 24.1319)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F88 #3A882F
analogous
#502F88 #7D2F88 #882F66
triadic
#7D2F88 #887D2F #2F887D
tetradic
#7D2F88 #88502F #3A882F #2F6688
square
#7D2F88 #88502F #3A882F #2F6688
split-complementary
#7D2F88 #66882F #2F8850
monochromatic
#29102D #531F5B #7D2F88 #A73FB5 #BE67CA

Accessibility & contrast

On white

7.97
#7D2F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2F88
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F88#FFFFFF#000000##FFFFFF
##7D2F881.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d2f88;
/* rgb */ color: rgb(125, 47, 136);
/* oklch */ color: oklch(45.4% 0.157 322.5);
Tailwind
colors: {
  custom: {
    50: '#a56dab',
    500: '#7d2f88',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f88;
$custom-light: #a56dab;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f88",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 292.584,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45393,
    "c": 0.15671,
    "h": 322.5
  },
  "luminance": 0.08171
}

Semantic roles & 50–950 ramp

primary
#7D2F88
secondary
#6BB161
accent
#D85060
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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