#7C2C8A#7C2C8A

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

Color values

HEX#7C2C8A
RGBrgb(124, 44, 138)
HSLhsl(291, 52%, 36%)
HSVhsv(291, 68%, 54%)
CMYKcmyk(10.1%, 68.1%, 0%, 45.9%)
CIE-LABlab(33.82, 48.05, -36.31)
CIE-LCHlch(33.82, 60.23, 322.92°)
OKLaboklab(45.03% 0.1268 -0.1013)
OKLCHoklch(45.03% 0.162 321.4)
XYZxyz(13.7998, 7.9221, 24.8421)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2C8A #3A8A2C
analogous
#4D2C8A #7C2C8A #8A2C69
triadic
#7C2C8A #8A7C2C #2C8A7C
tetradic
#7C2C8A #8A4D2C #3A8A2C #2C698A
square
#7C2C8A #8A4D2C #3A8A2C #2C698A
split-complementary
#7C2C8A #698A2C #2C8A4D
monochromatic
#290E2D #521D5C #7C2C8A #A63BB8 #BD63CD

Accessibility & contrast

On white

8.13
#7C2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2C8A
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2C8A#FFFFFF#000000##FFFFFF
##7C2C8A1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8D
Deuteranopia (green-blind)
#375388
Tritanopia (blue-blind)
#7D3C57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2c8a;
/* rgb */ color: rgb(124, 44, 138);
/* oklch */ color: oklch(45.0% 0.162 321.4);
Tailwind
colors: {
  custom: {
    50: '#a56cac',
    500: '#7c2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7c2c8a;
$custom-light: #a56cac;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2c8a",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 291.064,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45027,
    "c": 0.16232,
    "h": 321.4
  },
  "luminance": 0.07921
}

Semantic roles & 50–950 ramp

primary
#7C2C8A
secondary
#6BB45E
accent
#DB4D62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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