#7A288F#7A288F

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

Color values

HEX#7A288F
RGBrgb(122, 40, 143)
HSLhsl(288, 56%, 36%)
HSVhsv(288, 72%, 56%)
CMYKcmyk(14.7%, 72%, 0%, 43.9%)
CIE-LABlab(33.22, 50.27, -40.37)
CIE-LCHlch(33.22, 64.48, 321.23°)
OKLaboklab(44.63% 0.1286 -0.1132)
OKLCHoklch(44.63% 0.171 318.6)
XYZxyz(13.7421, 7.6390, 26.7319)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A288F #3D8F28
analogous
#46288F #7A288F #8F2870
triadic
#7A288F #8F7A28 #288F7A
tetradic
#7A288F #8F4628 #3D8F28 #28708F
square
#7A288F #8F4628 #3D8F28 #28708F
split-complementary
#7A288F #708F28 #288F46
monochromatic
#280D2F #511B5F #7A288F #A335BF #BB5FD2

Accessibility & contrast

On white

8.31
#7A288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7A288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A288F
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A288F#FFFFFF#000000##FFFFFF
##7A288F1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#2E518D
Tritanopia (blue-blind)
#7A3C59
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a288f;
/* rgb */ color: rgb(122, 40, 143);
/* oklch */ color: oklch(44.6% 0.171 318.6);
Tailwind
colors: {
  custom: {
    50: '#a46ab0',
    500: '#7a288f',
    950: '#000000',
  },
}
SCSS
$custom: #7a288f;
$custom-light: #a46ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a288f",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 287.767,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44634,
    "c": 0.17134,
    "h": 318.6
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#7A288F
secondary
#6EB85B
accent
#E04867
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A288F

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

Preview Lab → · Contrast checker → · Palette generator →

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