#7C2CA4#7C2CA4

#7C2CA4 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.187 H 311.8°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7C2CA4
RGBrgb(124, 44, 164)
HSLhsl(280, 58%, 41%)
HSVhsv(280, 73%, 64%)
CMYKcmyk(24.4%, 73.2%, 0%, 35.7%)
CIE-LABlab(35.53, 53.45, -49.41)
CIE-LCHlch(35.53, 72.79, 317.25°)
OKLaboklab(46.8% 0.1247 -0.1397)
OKLCHoklch(46.8% 0.187 311.8)
XYZxyz(15.9125, 8.7672, 35.9688)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CA4 #54A42C
analogous
#402CA4 #7C2CA4 #A42C90
triadic
#7C2CA4 #A47C2C #2CA47C
tetradic
#7C2CA4 #A4402C #54A42C #2C90A4
square
#7C2CA4 #A4402C #54A42C #2C90A4
split-complementary
#7C2CA4 #90A42C #2CA440
monochromatic
#331243 #581F74 #7C2CA4 #9E41CC #B671D9

Accessibility & contrast

On white

7.63
#7C2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7C2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CA4
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CA4#FFFFFF#000000##FFFFFF
##7C2CA41.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#1B55A1
Tritanopia (blue-blind)
#774765
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2ca4;
/* rgb */ color: rgb(124, 44, 164);
/* oklch */ color: oklch(46.8% 0.187 311.8);
Tailwind
colors: {
  custom: {
    50: '#a66dc0',
    500: '#7c2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ca4;
$custom-light: #a66dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ca4",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 280,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46798,
    "c": 0.18729,
    "h": 311.8
  },
  "luminance": 0.08767
}

Semantic roles & 50–950 ramp

primary
#7C2CA4
secondary
#88C06B
accent
#E1477A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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