#7D287F#7D287F

#7D287F is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.1% C 0.158 H 326.9°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7D287F
RGBrgb(125, 40, 127)
HSLhsl(299, 52%, 33%)
HSVhsv(299, 69%, 50%)
CMYKcmyk(1.6%, 68.5%, 0%, 50.2%)
CIE-LABlab(32.72, 47.91, -31.21)
CIE-LCHlch(32.72, 57.18, 326.92°)
OKLaboklab(44.06% 0.1326 -0.0864)
OKLCHoklch(44.06% 0.158 326.9)
XYZxyz(13.0468, 7.4107, 20.8178)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D287F #2A7F28
analogous
#52287F #7D287F #7F2855
triadic
#7D287F #7F7D28 #287F7D
tetradic
#7D287F #7F5228 #2A7F28 #28557F
square
#7D287F #7F5228 #2A7F28 #28557F
split-complementary
#7D287F #557F28 #287F52
monochromatic
#210B22 #4F1950 #7D287F #AB37AE #C857CA

Accessibility & contrast

On white

8.46
#7D287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7D287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D287F
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D287F#FFFFFF#000000##FFFFFF
##7D287F1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4682
Deuteranopia (green-blind)
#3C517D
Tritanopia (blue-blind)
#813550
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d287f;
/* rgb */ color: rgb(125, 40, 127);
/* oklch */ color: oklch(44.1% 0.158 326.9);
Tailwind
colors: {
  custom: {
    50: '#a66aa4',
    500: '#7d287f',
    950: '#000000',
  },
}
SCSS
$custom: #7d287f;
$custom-light: #a66aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d287f",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 298.621,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44061,
    "c": 0.15827,
    "h": 326.9
  },
  "luminance": 0.0741
}

Semantic roles & 50–950 ramp

primary
#7D287F
secondary
#56AF54
accent
#DC4C50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7D287F

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

Preview Lab → · Contrast checker → · Palette generator →

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