#7A2897#7A2897

#7A2897 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.179 H 315.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7A2897
RGBrgb(122, 40, 151)
HSLhsl(284, 58%, 37%)
HSVhsv(284, 74%, 59%)
CMYKcmyk(19.2%, 73.5%, 0%, 40.8%)
CIE-LABlab(33.75, 51.91, -44.42)
CIE-LCHlch(33.75, 68.32, 319.45°)
OKLaboklab(45.18% 0.1279 -0.1251)
OKLCHoklch(45.18% 0.179 315.6)
XYZxyz(14.3699, 7.8901, 30.0381)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2897 #459728
analogous
#422897 #7A2897 #97287D
triadic
#7A2897 #977A28 #28977A
tetradic
#7A2897 #974228 #459728 #287D97
square
#7A2897 #974228 #459728 #287D97
split-complementary
#7A2897 #7D9728 #289742
monochromatic
#2C0E36 #531B67 #7A2897 #A135C7 #B864D6

Accessibility & contrast

On white

8.15
#7A2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7A2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2897
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2897#FFFFFF#000000##FFFFFF
##7A28971.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#265295
Tritanopia (blue-blind)
#783F5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2897;
/* rgb */ color: rgb(122, 40, 151);
/* oklch */ color: oklch(45.2% 0.179 315.6);
Tailwind
colors: {
  custom: {
    50: '#a46ab6',
    500: '#7a2897',
    950: '#000000',
  },
}
SCSS
$custom: #7a2897;
$custom-light: #a46ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2897",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 284.324,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45185,
    "c": 0.17887,
    "h": 315.6
  },
  "luminance": 0.0789
}

Semantic roles & 50–950 ramp

primary
#7A2897
secondary
#77BC5F
accent
#E1466F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2897

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

Preview Lab → · Contrast checker → · Palette generator →

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