#7C2A8A#7C2A8A

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

Color values

HEX#7C2A8A
RGBrgb(124, 42, 138)
HSLhsl(291, 53%, 35%)
HSVhsv(291, 70%, 54%)
CMYKcmyk(10.1%, 69.6%, 0%, 45.9%)
CIE-LABlab(33.51, 48.91, -36.80)
CIE-LCHlch(33.51, 61.21, 323.04°)
OKLaboklab(44.81% 0.1291 -0.1027)
OKLCHoklch(44.81% 0.165 321.5)
XYZxyz(13.7271, 7.7767, 24.8178)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2A8A #388A2A
analogous
#4C2A8A #7C2A8A #8A2A68
triadic
#7C2A8A #8A7C2A #2A8A7C
tetradic
#7C2A8A #8A4C2A #388A2A #2A688A
square
#7C2A8A #8A4C2A #388A2A #2A688A
split-complementary
#7C2A8A #688A2A #2A8A4C
monochromatic
#280D2C #521C5B #7C2A8A #A638B9 #BE60CF

Accessibility & contrast

On white

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

On black

2.56
#7C2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7C2A8A#FFFFFF#000000##FFFFFF
##7C2A8A1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2a8a;
/* rgb */ color: rgb(124, 42, 138);
/* oklch */ color: oklch(44.8% 0.165 321.5);
Tailwind
colors: {
  custom: {
    50: '#a56bad',
    500: '#7c2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #7c2a8a;
$custom-light: #a56bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2a8a",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 291.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44807,
    "c": 0.16501,
    "h": 321.5
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#7C2A8A
secondary
#68B45B
accent
#DD4B60
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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