#7A288B#7A288B

#7A288B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.168 H 320.2°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#7A288B
RGBrgb(122, 40, 139)
HSLhsl(290, 55%, 35%)
HSVhsv(290, 71%, 55%)
CMYKcmyk(12.2%, 71.2%, 0%, 45.5%)
CIE-LABlab(32.96, 49.47, -38.32)
CIE-LCHlch(32.96, 62.58, 322.24°)
OKLaboklab(44.37% 0.1288 -0.1072)
OKLCHoklch(44.37% 0.168 320.2)
XYZxyz(13.4445, 7.5199, 25.1644)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A288B #398B28
analogous
#49288B #7A288B #8B286A
triadic
#7A288B #8B7A28 #288B7A
tetradic
#7A288B #8B4928 #398B28 #286A8B
square
#7A288B #8B4928 #398B28 #286A8B
split-complementary
#7A288B #6A8B28 #288B49
monochromatic
#270D2C #501A5B #7A288B #A436BB #BD5DD0

Accessibility & contrast

On white

8.39
#7A288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7A288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A288B
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A288B#FFFFFF#000000##FFFFFF
##7A288B1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#7B3A56
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a288b;
/* rgb */ color: rgb(122, 40, 139);
/* oklch */ color: oklch(44.4% 0.168 320.2);
Tailwind
colors: {
  custom: {
    50: '#a46aad',
    500: '#7a288b',
    950: '#000000',
  },
}
SCSS
$custom: #7a288b;
$custom-light: #a46aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a288b",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 289.697,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44368,
    "c": 0.16762,
    "h": 320.2
  },
  "luminance": 0.07519
}

Semantic roles & 50–950 ramp

primary
#7A288B
secondary
#69B659
accent
#DF4963
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A288B

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

Preview Lab → · Contrast checker → · Palette generator →

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