#7A288D#7A288D

#7A288D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.169 H 319.4°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7A288D
RGBrgb(122, 40, 141)
HSLhsl(289, 56%, 35%)
HSVhsv(289, 72%, 55%)
CMYKcmyk(13.5%, 71.6%, 0%, 44.7%)
CIE-LABlab(33.09, 49.87, -39.35)
CIE-LCHlch(33.09, 63.53, 321.73°)
OKLaboklab(44.5% 0.1287 -0.1102)
OKLCHoklch(44.5% 0.169 319.4)
XYZxyz(13.5919, 7.5789, 25.9411)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A288D #3B8D28
analogous
#47288D #7A288D #8D286D
triadic
#7A288D #8D7A28 #288D7A
tetradic
#7A288D #8D4728 #3B8D28 #286D8D
square
#7A288D #8D4728 #3B8D28 #286D8D
split-complementary
#7A288D #6D8D28 #288D47
monochromatic
#270D2E #511A5D #7A288D #A336BD #BC5ED1

Accessibility & contrast

On white

8.35
#7A288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7A288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A288D
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A288D#FFFFFF#000000##FFFFFF
##7A288D1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#30518B
Tritanopia (blue-blind)
#7A3B58
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a288d;
/* rgb */ color: rgb(122, 40, 141);
/* oklch */ color: oklch(44.5% 0.169 319.4);
Tailwind
colors: {
  custom: {
    50: '#a46aaf',
    500: '#7a288d',
    950: '#000000',
  },
}
SCSS
$custom: #7a288d;
$custom-light: #a46aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a288d",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 288.713,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.445,
    "c": 0.16947,
    "h": 319.4
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#7A288D
secondary
#6CB75A
accent
#DF4965
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A288D

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

Preview Lab → · Contrast checker → · Palette generator →

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