#7C2CA9#7C2CA9

#7C2CA9 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.192 H 310.2°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7C2CA9
RGBrgb(124, 44, 169)
HSLhsl(278, 59%, 42%)
HSVhsv(278, 74%, 66%)
CMYKcmyk(26.6%, 74%, 0%, 33.7%)
CIE-LABlab(35.89, 54.54, -51.83)
CIE-LCHlch(35.89, 75.24, 316.46°)
OKLaboklab(47.17% 0.124 -0.1468)
OKLCHoklch(47.17% 0.192 310.2)
XYZxyz(16.3729, 8.9514, 38.3937)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CA9 #59A92C
analogous
#3E2CA9 #7C2CA9 #A92C98
triadic
#7C2CA9 #A97C2C #2CA97C
tetradic
#7C2CA9 #A93E2C #59A92C #2C98A9
square
#7C2CA9 #A93E2C #59A92C #2C98A9
split-complementary
#7C2CA9 #98A92C #2CA93E
monochromatic
#351348 #581F78 #7C2CA9 #9C44CE #B674DB

Accessibility & contrast

On white

7.53
#7C2CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7C2CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CA9
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CA9#FFFFFF#000000##FFFFFF
##7C2CA91.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#1056A6
Tritanopia (blue-blind)
#764968
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2ca9;
/* rgb */ color: rgb(124, 44, 169);
/* oklch */ color: oklch(47.2% 0.192 310.2);
Tailwind
colors: {
  custom: {
    50: '#a66dc3',
    500: '#7c2ca9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ca9;
$custom-light: #a66dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ca9",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 278.4,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47165,
    "c": 0.19215,
    "h": 310.2
  },
  "luminance": 0.08951
}

Semantic roles & 50–950 ramp

primary
#7C2CA9
secondary
#8DC36E
accent
#E2467E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C2CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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