#7D287D#7D287D

#7D287D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.9% C 0.157 H 327.8°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7D287D
RGBrgb(125, 40, 125)
HSLhsl(300, 52%, 32%)
HSVhsv(300, 68%, 49%)
CMYKcmyk(0%, 68%, 0%, 51%)
CIE-LABlab(32.61, 47.54, -30.14)
CIE-LCHlch(32.61, 56.29, 327.63°)
OKLaboklab(43.94% 0.1325 -0.0833)
OKLCHoklch(43.94% 0.157 327.8)
XYZxyz(12.9177, 7.3591, 20.1381)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D287D #287D28
analogous
#53287D #7D287D #7D2853
triadic
#7D287D #7D7D28 #287D7D
tetradic
#7D287D #7D5328 #287D28 #28537D
square
#7D287D #7D5328 #287D28 #28537D
split-complementary
#7D287D #537D28 #287D53
monochromatic
#200A20 #4F194F #7D287D #AB37AB #C956C9

Accessibility & contrast

On white

8.50
#7D287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7D287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D287D
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D287D#FFFFFF#000000##FFFFFF
##7D287D1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C467F
Deuteranopia (green-blind)
#3D517B
Tritanopia (blue-blind)
#81344F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d287d;
/* rgb */ color: rgb(125, 40, 125);
/* oklch */ color: oklch(43.9% 0.157 327.8);
Tailwind
colors: {
  custom: {
    50: '#a569a3',
    500: '#7d287d',
    950: '#000000',
  },
}
SCSS
$custom: #7d287d;
$custom-light: #a569a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d287d",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43942,
    "c": 0.15653,
    "h": 327.8
  },
  "luminance": 0.07358
}

Semantic roles & 50–950 ramp

primary
#7D287D
secondary
#53AE53
accent
#DB4D4D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7D287D

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

Preview Lab → · Contrast checker → · Palette generator →

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