#7D288F#7D288F

#7D288F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.173 H 320.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7D288F
RGBrgb(125, 40, 143)
HSLhsl(290, 56%, 36%)
HSVhsv(290, 72%, 56%)
CMYKcmyk(12.6%, 72%, 0%, 43.9%)
CIE-LABlab(33.69, 50.95, -39.59)
CIE-LCHlch(33.69, 64.52, 322.15°)
OKLaboklab(45.07% 0.1324 -0.1108)
OKLCHoklch(45.07% 0.173 320.1)
XYZxyz(14.1736, 7.8614, 26.7521)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D288F #3A8F28
analogous
#4A288F #7D288F #8F286D
triadic
#7D288F #8F7D28 #288F7D
tetradic
#7D288F #8F4A28 #3A8F28 #286D8F
square
#7D288F #8F4A28 #3A8F28 #286D8F
split-complementary
#7D288F #6D8F28 #288F4A
monochromatic
#290D2F #531B5F #7D288F #A735BF #BE5FD2

Accessibility & contrast

On white

8.16
#7D288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7D288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D288F
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D288F#FFFFFF#000000##FFFFFF
##7D288F1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#31528D
Tritanopia (blue-blind)
#7D3B59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d288f;
/* rgb */ color: rgb(125, 40, 143);
/* oklch */ color: oklch(45.1% 0.173 320.1);
Tailwind
colors: {
  custom: {
    50: '#a66ab0',
    500: '#7d288f',
    950: '#000000',
  },
}
SCSS
$custom: #7d288f;
$custom-light: #a66ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d288f",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 289.515,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45068,
    "c": 0.17265,
    "h": 320.1
  },
  "luminance": 0.07861
}

Semantic roles & 50–950 ramp

primary
#7D288F
secondary
#6BB85B
accent
#E04863
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D288F

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

Preview Lab → · Contrast checker → · Palette generator →

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