#7D288C#7D288C

#7D288C is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.170 H 321.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7D288C
RGBrgb(125, 40, 140)
HSLhsl(291, 56%, 35%)
HSVhsv(291, 71%, 55%)
CMYKcmyk(10.7%, 71.4%, 0%, 45.1%)
CIE-LABlab(33.50, 50.36, -38.04)
CIE-LCHlch(33.50, 63.12, 322.93°)
OKLaboklab(44.87% 0.1325 -0.1063)
OKLCHoklch(44.87% 0.17 321.3)
XYZxyz(13.9493, 7.7717, 25.5712)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D288C #378C28
analogous
#4B288C #7D288C #8C2869
triadic
#7D288C #8C7D28 #288C7D
tetradic
#7D288C #8C4B28 #378C28 #28698C
square
#7D288C #8C4B28 #378C28 #28698C
split-complementary
#7D288C #698C28 #288C4B
monochromatic
#280D2D #521A5C #7D288C #A736BC #C05ED1

Accessibility & contrast

On white

8.22
#7D288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7D288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D288C
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D288C#FFFFFF#000000##FFFFFF
##7D288C1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00498F
Deuteranopia (green-blind)
#34528A
Tritanopia (blue-blind)
#7E3A57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d288c;
/* rgb */ color: rgb(125, 40, 140);
/* oklch */ color: oklch(44.9% 0.170 321.3);
Tailwind
colors: {
  custom: {
    50: '#a66aae',
    500: '#7d288c',
    950: '#000000',
  },
}
SCSS
$custom: #7d288c;
$custom-light: #a66aae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d288c",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 291,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44871,
    "c": 0.1699,
    "h": 321.3
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#7D288C
secondary
#67B65A
accent
#DF495F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D288C

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

Preview Lab → · Contrast checker → · Palette generator →

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