#7A2C8E#7A2C8E

#7A2C8E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.165 H 318.7°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7A2C8E
RGBrgb(122, 44, 142)
HSLhsl(288, 53%, 36%)
HSVhsv(288, 69%, 56%)
CMYKcmyk(14.1%, 69%, 0%, 44.3%)
CIE-LABlab(33.76, 48.37, -38.89)
CIE-LCHlch(33.76, 62.07, 321.20°)
OKLaboklab(45% 0.1242 -0.1089)
OKLCHoklch(45% 0.165 318.7)
XYZxyz(13.8086, 7.8926, 26.3820)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2C8E #408E2C
analogous
#492C8E #7A2C8E #8E2C71
triadic
#7A2C8E #8E7A2C #2C8E7A
tetradic
#7A2C8E #8E492C #408E2C #2C718E
square
#7A2C8E #8E492C #408E2C #2C718E
split-complementary
#7A2C8E #718E2C #2C8E49
monochromatic
#2A0F31 #521E5F #7A2C8E #A23ABD #BA65CF

Accessibility & contrast

On white

8.14
#7A2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2C8E
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2C8E#FFFFFF#000000##FFFFFF
##7A2C8E1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A91
Deuteranopia (green-blind)
#32528C
Tritanopia (blue-blind)
#7A3E59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2c8e;
/* rgb */ color: rgb(122, 44, 142);
/* oklch */ color: oklch(45.0% 0.165 318.7);
Tailwind
colors: {
  custom: {
    50: '#a46caf',
    500: '#7a2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #7a2c8e;
$custom-light: #a46caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2c8e",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 287.755,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45,
    "c": 0.1652,
    "h": 318.7
  },
  "luminance": 0.07892
}

Semantic roles & 50–950 ramp

primary
#7A2C8E
secondary
#72B660
accent
#DC4C69
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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