#7A2891#7A2891

#7A2891 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.173 H 317.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7A2891
RGBrgb(122, 40, 145)
HSLhsl(287, 57%, 36%)
HSVhsv(287, 72%, 57%)
CMYKcmyk(15.9%, 72.4%, 0%, 43.1%)
CIE-LABlab(33.35, 50.68, -41.39)
CIE-LCHlch(33.35, 65.43, 320.76°)
OKLaboklab(44.77% 0.1284 -0.1162)
OKLCHoklch(44.77% 0.173 317.9)
XYZxyz(13.8949, 7.7001, 27.5369)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2891 #3F9128
analogous
#462891 #7A2891 #912874
triadic
#7A2891 #917A28 #28917A
tetradic
#7A2891 #914628 #3F9128 #287491
square
#7A2891 #914628 #3F9128 #287491
split-complementary
#7A2891 #749128 #289146
monochromatic
#290E31 #521B61 #7A2891 #A235C1 #BA60D3

Accessibility & contrast

On white

8.27
#7A2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7A2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2891
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2891#FFFFFF#000000##FFFFFF
##7A28911.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#2C518F
Tritanopia (blue-blind)
#793D5A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a2891;
/* rgb */ color: rgb(122, 40, 145);
/* oklch */ color: oklch(44.8% 0.173 317.9);
Tailwind
colors: {
  custom: {
    50: '#a46ab2',
    500: '#7a2891',
    950: '#000000',
  },
}
SCSS
$custom: #7a2891;
$custom-light: #a46ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2891",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 286.857,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4477,
    "c": 0.17322,
    "h": 317.9
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

primary
#7A2891
secondary
#70B95C
accent
#E04869
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2891

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

Preview Lab → · Contrast checker → · Palette generator →

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