#7C2A9E#7C2A9E

#7C2A9E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.184 H 313.9°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7C2A9E
RGBrgb(124, 42, 158)
HSLhsl(282, 58%, 39%)
HSVhsv(282, 73%, 62%)
CMYKcmyk(21.5%, 73.4%, 0%, 38%)
CIE-LABlab(34.82, 52.99, -46.93)
CIE-LCHlch(34.82, 70.78, 318.47°)
OKLaboklab(46.16% 0.1276 -0.1324)
OKLCHoklch(46.16% 0.184 313.9)
XYZxyz(15.3106, 8.4101, 33.1579)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2A9E #4C9E2A
analogous
#422A9E #7C2A9E #9E2A86
triadic
#7C2A9E #9E7C2A #2A9E7C
tetradic
#7C2A9E #9E422A #4C9E2A #2A869E
square
#7C2A9E #9E422A #4C9E2A #2A869E
split-complementary
#7C2A9E #869E2A #2A9E42
monochromatic
#30103D #561D6E #7C2A9E #A03ACB #B86BD8

Accessibility & contrast

On white

7.83
#7C2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7C2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2A9E
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2A9E#FFFFFF#000000##FFFFFF
##7C2A9E1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#22549B
Tritanopia (blue-blind)
#794362
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c2a9e;
/* rgb */ color: rgb(124, 42, 158);
/* oklch */ color: oklch(46.2% 0.184 313.9);
Tailwind
colors: {
  custom: {
    50: '#a66cbb',
    500: '#7c2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #7c2a9e;
$custom-light: #a66cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2a9e",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 282.414,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46161,
    "c": 0.18387,
    "h": 313.9
  },
  "luminance": 0.0841
}

Semantic roles & 50–950 ramp

primary
#7C2A9E
secondary
#80BE66
accent
#E14774
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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