#7D2887#7D2887

#7D2887 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.165 H 323.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7D2887
RGBrgb(125, 40, 135)
HSLhsl(294, 54%, 34%)
HSVhsv(294, 70%, 53%)
CMYKcmyk(7.4%, 70.4%, 0%, 47.1%)
CIE-LABlab(33.20, 49.40, -35.44)
CIE-LCHlch(33.20, 60.80, 324.34°)
OKLaboklab(44.55% 0.1327 -0.0987)
OKLCHoklch(44.55% 0.165 323.3)
XYZxyz(13.5890, 7.6276, 23.6735)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2887 #328728
analogous
#4E2887 #7D2887 #872862
triadic
#7D2887 #877D28 #28877D
tetradic
#7D2887 #874E28 #328728 #286287
square
#7D2887 #874E28 #328728 #286287
split-complementary
#7D2887 #628728 #28874E
monochromatic
#260C29 #511A58 #7D2887 #A936B6 #C25BCE

Accessibility & contrast

On white

8.32
#7D2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7D2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2887
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2887#FFFFFF#000000##FFFFFF
##7D28871.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D488A
Deuteranopia (green-blind)
#375185
Tritanopia (blue-blind)
#7F3854
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d2887;
/* rgb */ color: rgb(125, 40, 135);
/* oklch */ color: oklch(44.6% 0.165 323.3);
Tailwind
colors: {
  custom: {
    50: '#a66aaa',
    500: '#7d2887',
    950: '#000000',
  },
}
SCSS
$custom: #7d2887;
$custom-light: #a66aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2887",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 293.684,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44551,
    "c": 0.16537,
    "h": 323.3
  },
  "luminance": 0.07627
}

Semantic roles & 50–950 ramp

primary
#7D2887
secondary
#61B457
accent
#DE4A5A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2887

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

Preview Lab → · Contrast checker → · Palette generator →

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