#7A2899#7A2899

#7A2899 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.181 H 314.9°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7A2899
RGBrgb(122, 40, 153)
HSLhsl(284, 59%, 38%)
HSVhsv(284, 74%, 60%)
CMYKcmyk(20.3%, 73.9%, 0%, 40%)
CIE-LABlab(33.89, 52.33, -45.41)
CIE-LCHlch(33.89, 69.29, 319.05°)
OKLaboklab(45.33% 0.1276 -0.128)
OKLCHoklch(45.33% 0.181 314.9)
XYZxyz(14.5337, 7.9556, 30.9008)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2899 #479928
analogous
#422899 #7A2899 #99287F
triadic
#7A2899 #997A28 #28997A
tetradic
#7A2899 #994228 #479928 #287F99
square
#7A2899 #994228 #479928 #287F99
split-complementary
#7A2899 #7F9928 #289942
monochromatic
#2D0F38 #531B68 #7A2899 #A135CA #B765D7

Accessibility & contrast

On white

8.10
#7A2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7A2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2899
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2899#FFFFFF#000000##FFFFFF
##7A28991.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#235297
Tritanopia (blue-blind)
#77405E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a2899;
/* rgb */ color: rgb(122, 40, 153);
/* oklch */ color: oklch(45.3% 0.181 314.9);
Tailwind
colors: {
  custom: {
    50: '#a46ab8',
    500: '#7a2899',
    950: '#000000',
  },
}
SCSS
$custom: #7a2899;
$custom-light: #a46ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2899",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 283.54,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45326,
    "c": 0.18076,
    "h": 314.9
  },
  "luminance": 0.07955
}

Semantic roles & 50–950 ramp

primary
#7A2899
secondary
#7ABD60
accent
#E24671
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2899

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

Preview Lab → · Contrast checker → · Palette generator →

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