#7D2E87#7D2E87

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

Color values

HEX#7D2E87
RGBrgb(125, 46, 135)
HSLhsl(293, 49%, 35%)
HSVhsv(293, 66%, 53%)
CMYKcmyk(7.4%, 65.9%, 0%, 47.1%)
CIE-LABlab(34.12, 46.82, -33.98)
CIE-LCHlch(34.12, 57.85, 324.03°)
OKLaboklab(45.22% 0.1256 -0.0945)
OKLCHoklch(45.22% 0.157 323)
XYZxyz(13.8072, 8.0640, 23.7462)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2E87 #38872E
analogous
#502E87 #7D2E87 #872E65
triadic
#7D2E87 #877D2E #2E877D
tetradic
#7D2E87 #87502E #38872E #2E6587
square
#7D2E87 #87502E #38872E #2E6587
split-complementary
#7D2E87 #65872E #2E8750
monochromatic
#280F2C #531E59 #7D2E87 #A73EB5 #BF65CA

Accessibility & contrast

On white

8.04
#7D2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7D2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2E87
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2E87#FFFFFF#000000##FFFFFF
##7D2E871.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A8A
Deuteranopia (green-blind)
#3B5385
Tritanopia (blue-blind)
#7F3C56
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2e87;
/* rgb */ color: rgb(125, 46, 135);
/* oklch */ color: oklch(45.2% 0.157 323.0);
Tailwind
colors: {
  custom: {
    50: '#a56daa',
    500: '#7d2e87',
    950: '#000000',
  },
}
SCSS
$custom: #7d2e87;
$custom-light: #a56daa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2e87",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 293.258,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45215,
    "c": 0.15721,
    "h": 323
  },
  "luminance": 0.08063
}

Semantic roles & 50–950 ramp

primary
#7D2E87
secondary
#69B160
accent
#D94F5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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