#7A288E#7A288E

#7A288E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.170 H 319.0°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#7A288E
RGBrgb(122, 40, 142)
HSLhsl(288, 56%, 36%)
HSVhsv(288, 72%, 56%)
CMYKcmyk(14.1%, 71.8%, 0%, 44.3%)
CIE-LABlab(33.15, 50.07, -39.86)
CIE-LCHlch(33.15, 64.00, 321.48°)
OKLaboklab(44.57% 0.1287 -0.1117)
OKLCHoklch(44.57% 0.17 319)
XYZxyz(13.6667, 7.6088, 26.3347)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A288E #3C8E28
analogous
#47288E #7A288E #8E286F
triadic
#7A288E #8E7A28 #288E7A
tetradic
#7A288E #8E4728 #3C8E28 #286F8E
square
#7A288E #8E4728 #3C8E28 #286F8E
split-complementary
#7A288E #6F8E28 #288E47
monochromatic
#280D2F #511B5E #7A288E #A335BE #BB5FD2

Accessibility & contrast

On white

8.33
#7A288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A288E
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A288E#FFFFFF#000000##FFFFFF
##7A288E1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#2F518C
Tritanopia (blue-blind)
#7A3B58
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a288e;
/* rgb */ color: rgb(122, 40, 142);
/* oklch */ color: oklch(44.6% 0.170 319.0);
Tailwind
colors: {
  custom: {
    50: '#a46ab0',
    500: '#7a288e',
    950: '#000000',
  },
}
SCSS
$custom: #7a288e;
$custom-light: #a46ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a288e",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 288.235,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44567,
    "c": 0.17041,
    "h": 319
  },
  "luminance": 0.07608
}

Semantic roles & 50–950 ramp

primary
#7A288E
secondary
#6DB75B
accent
#DF4866
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A288E

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

Preview Lab → · Contrast checker → · Palette generator →

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