#7A2E8A#7A2E8A

#7A2E8A is a dark, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.159 H 320.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7A2E8A
RGBrgb(122, 46, 138)
HSLhsl(290, 50%, 36%)
HSVhsv(290, 67%, 54%)
CMYKcmyk(11.6%, 66.7%, 0%, 45.9%)
CIE-LABlab(33.83, 46.67, -36.31)
CIE-LCHlch(33.83, 59.13, 322.11°)
OKLaboklab(44.97% 0.1219 -0.1014)
OKLCHoklch(44.97% 0.159 320.2)
XYZxyz(13.5899, 7.9272, 24.8541)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2E8A #3E8A2E
analogous
#4C2E8A #7A2E8A #8A2E6C
triadic
#7A2E8A #8A7A2E #2E8A7A
tetradic
#7A2E8A #8A4C2E #3E8A2E #2E6C8A
square
#7A2E8A #8A4C2E #3E8A2E #2E6C8A
split-complementary
#7A2E8A #6C8A2E #2E8A4C
monochromatic
#290F2E #511F5C #7A2E8A #A33DB8 #BA66CC

Accessibility & contrast

On white

8.12
#7A2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2E8A
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2E8A#FFFFFF#000000##FFFFFF
##7A2E8A1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134A8D
Deuteranopia (green-blind)
#365288
Tritanopia (blue-blind)
#7B3E58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a2e8a;
/* rgb */ color: rgb(122, 46, 138);
/* oklch */ color: oklch(45.0% 0.159 320.2);
Tailwind
colors: {
  custom: {
    50: '#a36dac',
    500: '#7a2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #7a2e8a;
$custom-light: #a36dac;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2e8a",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 289.565,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44972,
    "c": 0.15858,
    "h": 320.2
  },
  "luminance": 0.07927
}

Semantic roles & 50–950 ramp

primary
#7A2E8A
secondary
#6FB361
accent
#DA4E66
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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