#7A2C8A#7A2C8A

#7A2C8A is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.7% C 0.161 H 320.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7A2C8A
RGBrgb(122, 44, 138)
HSLhsl(290, 52%, 36%)
HSVhsv(290, 68%, 54%)
CMYKcmyk(11.6%, 68.1%, 0%, 45.9%)
CIE-LABlab(33.51, 47.56, -36.83)
CIE-LCHlch(33.51, 60.15, 322.25°)
OKLaboklab(44.74% 0.1243 -0.1029)
OKLCHoklch(44.74% 0.161 320.4)
XYZxyz(13.5136, 7.7746, 24.8287)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2C8A #3C8A2C
analogous
#4B2C8A #7A2C8A #8A2C6B
triadic
#7A2C8A #8A7A2C #2C8A7A
tetradic
#7A2C8A #8A4B2C #3C8A2C #2C6B8A
square
#7A2C8A #8A4B2C #3C8A2C #2C6B8A
split-complementary
#7A2C8A #6B8A2C #2C8A4B
monochromatic
#280E2D #511D5C #7A2C8A #A33BB8 #BB63CD

Accessibility & contrast

On white

8.22
#7A2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7A2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2C8A
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2C8A#FFFFFF#000000##FFFFFF
##7A2C8A1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D498D
Deuteranopia (green-blind)
#355288
Tritanopia (blue-blind)
#7B3C57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2c8a;
/* rgb */ color: rgb(122, 44, 138);
/* oklch */ color: oklch(44.7% 0.161 320.4);
Tailwind
colors: {
  custom: {
    50: '#a36cad',
    500: '#7a2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7a2c8a;
$custom-light: #a36cad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2c8a",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 289.787,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4474,
    "c": 0.16137,
    "h": 320.4
  },
  "luminance": 0.07774
}

Semantic roles & 50–950 ramp

primary
#7A2C8A
secondary
#6DB45E
accent
#DB4D65
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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