#7C2A88#7C2A88

#7C2A88 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.163 H 322.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7C2A88
RGBrgb(124, 42, 136)
HSLhsl(292, 53%, 35%)
HSVhsv(292, 69%, 53%)
CMYKcmyk(8.8%, 69.1%, 0%, 46.7%)
CIE-LABlab(33.39, 48.52, -35.76)
CIE-LCHlch(33.39, 60.27, 323.61°)
OKLaboklab(44.68% 0.1292 -0.0997)
OKLCHoklch(44.68% 0.163 322.3)
XYZxyz(13.5836, 7.7193, 24.0623)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2A88 #36882A
analogous
#4D2A88 #7C2A88 #882A65
triadic
#7C2A88 #887C2A #2A887C
tetradic
#7C2A88 #884D2A #36882A #2A6588
square
#7C2A88 #884D2A #36882A #2A6588
split-complementary
#7C2A88 #65882A #2A884D
monochromatic
#270D2A #511C59 #7C2A88 #A738B7 #BF5FCE

Accessibility & contrast

On white

8.26
#7C2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7C2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2A88
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2A88#FFFFFF#000000##FFFFFF
##7C2A881.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F498B
Deuteranopia (green-blind)
#375286
Tritanopia (blue-blind)
#7E3A55
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c2a88;
/* rgb */ color: rgb(124, 42, 136);
/* oklch */ color: oklch(44.7% 0.163 322.3);
Tailwind
colors: {
  custom: {
    50: '#a56bab',
    500: '#7c2a88',
    950: '#000000',
  },
}
SCSS
$custom: #7c2a88;
$custom-light: #a56bab;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2a88",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 292.34,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4468,
    "c": 0.16317,
    "h": 322.3
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#7C2A88
secondary
#66B35B
accent
#DC4C5E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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