#7C2C8E#7C2C8E

#7C2C8E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.166 H 319.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7C2C8E
RGBrgb(124, 44, 142)
HSLhsl(289, 53%, 36%)
HSVhsv(289, 69%, 56%)
CMYKcmyk(12.7%, 69%, 0%, 44.3%)
CIE-LABlab(34.07, 48.85, -38.38)
CIE-LCHlch(34.07, 62.13, 321.84°)
OKLaboklab(45.28% 0.1267 -0.1074)
OKLCHoklch(45.28% 0.166 319.7)
XYZxyz(14.0947, 8.0401, 26.3954)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2C8E #3E8E2C
analogous
#4B2C8E #7C2C8E #8E2C6F
triadic
#7C2C8E #8E7C2C #2C8E7C
tetradic
#7C2C8E #8E4B2C #3E8E2C #2C6F8E
square
#7C2C8E #8E4B2C #3E8E2C #2C6F8E
split-complementary
#7C2C8E #6F8E2C #2C8E4B
monochromatic
#2A0F31 #531E5F #7C2C8E #A53ABD #BC65CF

Accessibility & contrast

On white

8.05
#7C2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7C2C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2C8E
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2C8E#FFFFFF#000000##FFFFFF
##7C2C8E1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064B91
Deuteranopia (green-blind)
#34538C
Tritanopia (blue-blind)
#7C3E59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2c8e;
/* rgb */ color: rgb(124, 44, 142);
/* oklch */ color: oklch(45.3% 0.166 319.7);
Tailwind
colors: {
  custom: {
    50: '#a56caf',
    500: '#7c2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #7c2c8e;
$custom-light: #a56caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2c8e",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 288.98,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45284,
    "c": 0.1661,
    "h": 319.7
  },
  "luminance": 0.08039
}

Semantic roles & 50–950 ramp

primary
#7C2C8E
secondary
#70B660
accent
#DC4C66
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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