#7D288B#7D288B

#7D288B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.169 H 321.7°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7D288B
RGBrgb(125, 40, 139)
HSLhsl(292, 55%, 35%)
HSVhsv(292, 71%, 55%)
CMYKcmyk(10.1%, 71.2%, 0%, 45.5%)
CIE-LABlab(33.44, 50.17, -37.53)
CIE-LCHlch(33.44, 62.65, 323.20°)
OKLaboklab(44.81% 0.1326 -0.1048)
OKLCHoklch(44.81% 0.169 321.7)
XYZxyz(13.8759, 7.7424, 25.1846)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D288B #368B28
analogous
#4B288B #7D288B #8B2868
triadic
#7D288B #8B7D28 #288B7D
tetradic
#7D288B #8B4B28 #368B28 #28688B
square
#7D288B #8B4B28 #368B28 #28688B
split-complementary
#7D288B #688B28 #288B4B
monochromatic
#280D2C #521A5B #7D288B #A836BB #C05DD0

Accessibility & contrast

On white

8.24
#7D288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D288B
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D288B#FFFFFF#000000##FFFFFF
##7D288B1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02498E
Deuteranopia (green-blind)
#345289
Tritanopia (blue-blind)
#7E3A56
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d288b;
/* rgb */ color: rgb(125, 40, 139);
/* oklch */ color: oklch(44.8% 0.169 321.7);
Tailwind
colors: {
  custom: {
    50: '#a66aad',
    500: '#7d288b',
    950: '#000000',
  },
}
SCSS
$custom: #7d288b;
$custom-light: #a66aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d288b",
  "rgb": {
    "r": 125,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 291.515,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44806,
    "c": 0.16899,
    "h": 321.7
  },
  "luminance": 0.07742
}

Semantic roles & 50–950 ramp

primary
#7D288B
secondary
#66B659
accent
#DF495E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D288B

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

Preview Lab → · Contrast checker → · Palette generator →

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