#7D287A#7D287A

#7D287A is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.8% C 0.154 H 329.3°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7D287A
RGBrgb(125, 40, 122)
HSLhsl(302, 52%, 32%)
HSVhsv(302, 68%, 49%)
CMYKcmyk(0%, 68%, 2.4%, 51%)
CIE-LABlab(32.44, 47.00, -28.52)
CIE-LCHlch(32.44, 54.98, 328.75°)
OKLaboklab(43.77% 0.1324 -0.0786)
OKLCHoklch(43.77% 0.154 329.3)
XYZxyz(12.7290, 7.2836, 19.1440)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D287A #287D2B
analogous
#56287D #7D287A #7D284F
triadic
#7D287A #7A7D28 #287A7D
tetradic
#7D287A #7D5628 #287D2B #284F7D
square
#7D287A #7D5628 #287D2B #284F7D
split-complementary
#7D287A #4F7D28 #287D56
monochromatic
#200A1F #4F194D #7D287A #AB37A7 #C956C5

Accessibility & contrast

On white

8.55
#7D287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7D287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D287A
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D287A#FFFFFF#000000##FFFFFF
##7D287A1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F457C
Deuteranopia (green-blind)
#3F5078
Tritanopia (blue-blind)
#81324D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d287a;
/* rgb */ color: rgb(125, 40, 122);
/* oklch */ color: oklch(43.8% 0.154 329.3);
Tailwind
colors: {
  custom: {
    50: '#a569a1',
    500: '#7d287a',
    950: '#000000',
  },
}
SCSS
$custom: #7d287a;
$custom-light: #a569a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d287a",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 302.118,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43767,
    "c": 0.15395,
    "h": 329.3
  },
  "luminance": 0.07283
}

Semantic roles & 50–950 ramp

primary
#7D287A
secondary
#53AE56
accent
#DB524D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7D287A

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

Preview Lab → · Contrast checker → · Palette generator →

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