#7A2C8D#7A2C8D

#7A2C8D is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.164 H 319.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7A2C8D
RGBrgb(122, 44, 141)
HSLhsl(288, 52%, 36%)
HSVhsv(288, 69%, 55%)
CMYKcmyk(13.5%, 68.8%, 0%, 44.7%)
CIE-LABlab(33.70, 48.17, -38.38)
CIE-LCHlch(33.70, 61.59, 321.45°)
OKLaboklab(44.93% 0.1242 -0.1074)
OKLCHoklch(44.93% 0.164 319.1)
XYZxyz(13.7338, 7.8627, 25.9884)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2C8D #3F8D2C
analogous
#4A2C8D #7A2C8D #8D2C70
triadic
#7A2C8D #8D7A2C #2C8D7A
tetradic
#7A2C8D #8D4A2C #3F8D2C #2C708D
square
#7A2C8D #8D4A2C #3F8D2C #2C708D
split-complementary
#7A2C8D #708D2C #2C8D4A
monochromatic
#290F30 #521D5E #7A2C8D #A23BBC #BA65CF

Accessibility & contrast

On white

8.16
#7A2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A2C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2C8D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2C8D#FFFFFF#000000##FFFFFF
##7A2C8D1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054A90
Deuteranopia (green-blind)
#32528B
Tritanopia (blue-blind)
#7A3E59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2c8d;
/* rgb */ color: rgb(122, 44, 141);
/* oklch */ color: oklch(44.9% 0.164 319.1);
Tailwind
colors: {
  custom: {
    50: '#a36caf',
    500: '#7a2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #7a2c8d;
$custom-light: #a36caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2c8d",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 288.247,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44934,
    "c": 0.16424,
    "h": 319.1
  },
  "luminance": 0.07862
}

Semantic roles & 50–950 ramp

primary
#7A2C8D
secondary
#70B560
accent
#DC4C68
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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