#7A2C8C#7A2C8C

#7A2C8C is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.163 H 319.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7A2C8C
RGBrgb(122, 44, 140)
HSLhsl(289, 52%, 36%)
HSVhsv(289, 69%, 55%)
CMYKcmyk(12.9%, 68.6%, 0%, 45.1%)
CIE-LABlab(33.63, 47.97, -37.86)
CIE-LCHlch(33.63, 61.11, 321.71°)
OKLaboklab(44.87% 0.1243 -0.1059)
OKLCHoklch(44.87% 0.163 319.6)
XYZxyz(13.6597, 7.8330, 25.5983)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2C8C #3E8C2C
analogous
#4A2C8C #7A2C8C #8C2C6E
triadic
#7A2C8C #8C7A2C #2C8C7A
tetradic
#7A2C8C #8C4A2C #3E8C2C #2C6E8C
square
#7A2C8C #8C4A2C #3E8C2C #2C6E8C
split-complementary
#7A2C8C #6E8C2C #2C8C4A
monochromatic
#290F2F #511D5D #7A2C8C #A33BBB #BA64CE

Accessibility & contrast

On white

8.18
#7A2C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2C8C
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2C8C#FFFFFF#000000##FFFFFF
##7A2C8C1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084A8F
Deuteranopia (green-blind)
#33528A
Tritanopia (blue-blind)
#7A3D58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2c8c;
/* rgb */ color: rgb(122, 44, 140);
/* oklch */ color: oklch(44.9% 0.163 319.6);
Tailwind
colors: {
  custom: {
    50: '#a36cae',
    500: '#7a2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #7a2c8c;
$custom-light: #a36cae;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2c8c",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 288.75,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44869,
    "c": 0.16328,
    "h": 319.6
  },
  "luminance": 0.07832
}

Semantic roles & 50–950 ramp

primary
#7A2C8C
secondary
#6FB55F
accent
#DC4C67
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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