#7A2887#7A2887

#7A2887 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.1% C 0.164 H 321.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#7A2887
RGBrgb(122, 40, 135)
HSLhsl(292, 54%, 34%)
HSVhsv(292, 70%, 53%)
CMYKcmyk(9.6%, 70.4%, 0%, 47.1%)
CIE-LABlab(32.71, 48.69, -36.24)
CIE-LCHlch(32.71, 60.70, 323.34°)
OKLaboklab(44.11% 0.129 -0.1012)
OKLCHoklch(44.11% 0.164 321.9)
XYZxyz(13.1575, 7.4051, 23.6533)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2887 #358728
analogous
#4A2887 #7A2887 #872865
triadic
#7A2887 #877A28 #28877A
tetradic
#7A2887 #874A28 #358728 #286587
square
#7A2887 #874A28 #358728 #286587
split-complementary
#7A2887 #658728 #28874A
monochromatic
#250C29 #4F1A58 #7A2887 #A536B6 #BF5BCE

Accessibility & contrast

On white

8.47
#7A2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7A2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2887
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2887#FFFFFF#000000##FFFFFF
##7A28871.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08478A
Deuteranopia (green-blind)
#345085
Tritanopia (blue-blind)
#7B3954
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2887;
/* rgb */ color: rgb(122, 40, 135);
/* oklch */ color: oklch(44.1% 0.164 321.9);
Tailwind
colors: {
  custom: {
    50: '#a369aa',
    500: '#7a2887',
    950: '#000000',
  },
}
SCSS
$custom: #7a2887;
$custom-light: #a369aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2887",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 291.789,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44108,
    "c": 0.16393,
    "h": 321.9
  },
  "luminance": 0.07404
}

Semantic roles & 50–950 ramp

primary
#7A2887
secondary
#64B457
accent
#DE4A5E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2887

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

Preview Lab → · Contrast checker → · Palette generator →

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