#7D287E#7D287E

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

Color values

HEX#7D287E
RGBrgb(125, 40, 126)
HSLhsl(299, 52%, 33%)
HSVhsv(299, 68%, 49%)
CMYKcmyk(0.8%, 68.3%, 0%, 50.6%)
CIE-LABlab(32.67, 47.72, -30.68)
CIE-LCHlch(32.67, 56.73, 327.27°)
OKLaboklab(44% 0.1326 -0.0849)
OKLCHoklch(44% 0.157 327.4)
XYZxyz(12.9819, 7.3848, 20.4763)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D287E #297E28
analogous
#52287E #7D287E #7E2854
triadic
#7D287E #7E7D28 #287E7D
tetradic
#7D287E #7E5228 #297E28 #28547E
square
#7D287E #7E5228 #297E28 #28547E
split-complementary
#7D287E #547E28 #287E52
monochromatic
#210B21 #4F1950 #7D287E #AB37AC #C857CA

Accessibility & contrast

On white

8.48
#7D287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D287E
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D287E#FFFFFF#000000##FFFFFF
##7D287E1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d287e;
/* rgb */ color: rgb(125, 40, 126);
/* oklch */ color: oklch(44.0% 0.157 327.4);
Tailwind
colors: {
  custom: {
    50: '#a669a4',
    500: '#7d287e',
    950: '#000000',
  },
}
SCSS
$custom: #7d287e;
$custom-light: #a669a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d287e",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 299.302,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44001,
    "c": 0.15741,
    "h": 327.4
  },
  "luminance": 0.07384
}

Semantic roles & 50–950 ramp

primary
#7D287E
secondary
#54AF53
accent
#DB4D4E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7D287E

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

Preview Lab → · Contrast checker → · Palette generator →

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