#7C2276#7C2276

#7C2276 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.158 H 330.8°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7C2276
RGBrgb(124, 34, 118)
HSLhsl(304, 57%, 31%)
HSVhsv(304, 73%, 49%)
CMYKcmyk(0%, 72.6%, 4.8%, 51.4%)
CIE-LABlab(31.20, 48.44, -27.97)
CIE-LCHlch(31.20, 55.93, 330.00°)
OKLaboklab(42.77% 0.1378 -0.077)
OKLCHoklch(42.77% 0.158 330.8)
XYZxyz(12.1542, 6.7381, 17.7965)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2276 #227C28
analogous
#55227C #7C2276 #7C2249
triadic
#7C2276 #767C22 #22767C
tetradic
#7C2276 #7C5522 #227C28 #22497C
square
#7C2276 #7C5522 #227C28 #22497C
split-complementary
#7C2276 #497C22 #227C55
monochromatic
#1C081B #4C1548 #7C2276 #AC2FA4 #CE4BC5

Accessibility & contrast

On white

8.95
#7C2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7C2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2276
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2276#FFFFFF#000000##FFFFFF
##7C22761.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4178
Deuteranopia (green-blind)
#3D4E74
Tritanopia (blue-blind)
#812D49
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c2276;
/* rgb */ color: rgb(124, 34, 118);
/* oklch */ color: oklch(42.8% 0.158 330.8);
Tailwind
colors: {
  custom: {
    50: '#a5669e',
    500: '#7c2276',
    950: '#000000',
  },
}
SCSS
$custom: #7c2276;
$custom-light: #a5669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2276",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 304,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42767,
    "c": 0.15789,
    "h": 330.8
  },
  "luminance": 0.06737
}

Semantic roles & 50–950 ramp

primary
#7C2276
secondary
#4BAF52
accent
#E05248
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C2276

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

Preview Lab → · Contrast checker → · Palette generator →

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