#7D288E#7D288E

#7D288E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.172 H 320.4°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7D288E
RGBrgb(125, 40, 142)
HSLhsl(290, 56%, 36%)
HSVhsv(290, 72%, 56%)
CMYKcmyk(12%, 71.8%, 0%, 44.3%)
CIE-LABlab(33.63, 50.76, -39.07)
CIE-LCHlch(33.63, 64.05, 322.41°)
OKLaboklab(45% 0.1324 -0.1093)
OKLCHoklch(45% 0.172 320.4)
XYZxyz(14.0981, 7.8313, 26.3549)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D288E #398E28
analogous
#4A288E #7D288E #8E286C
triadic
#7D288E #8E7D28 #288E7D
tetradic
#7D288E #8E4A28 #398E28 #286C8E
square
#7D288E #8E4A28 #398E28 #286C8E
split-complementary
#7D288E #6C8E28 #288E4A
monochromatic
#290D2F #531B5E #7D288E #A735BE #BF5FD2

Accessibility & contrast

On white

8.18
#7D288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D288E
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D288E#FFFFFF#000000##FFFFFF
##7D288E1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#32528C
Tritanopia (blue-blind)
#7E3B58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d288e;
/* rgb */ color: rgb(125, 40, 142);
/* oklch */ color: oklch(45.0% 0.172 320.4);
Tailwind
colors: {
  custom: {
    50: '#a66aaf',
    500: '#7d288e',
    950: '#000000',
  },
}
SCSS
$custom: #7d288e;
$custom-light: #a66aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d288e",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 290,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45002,
    "c": 0.17173,
    "h": 320.4
  },
  "luminance": 0.07831
}

Semantic roles & 50–950 ramp

primary
#7D288E
secondary
#6AB75B
accent
#DF4862
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D288E

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

Preview Lab → · Contrast checker → · Palette generator →

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