#7C2EA9#7C2EA9

#7C2EA9 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.190 H 310.0°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7C2EA9
RGBrgb(124, 46, 169)
HSLhsl(278, 57%, 42%)
HSVhsv(278, 73%, 66%)
CMYKcmyk(26.6%, 72.8%, 0%, 33.7%)
CIE-LABlab(36.18, 53.71, -51.36)
CIE-LCHlch(36.18, 74.31, 316.28°)
OKLaboklab(47.37% 0.122 -0.1454)
OKLCHoklch(47.37% 0.19 310)
XYZxyz(16.4492, 9.1040, 38.4191)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EA9 #5BA92E
analogous
#3F2EA9 #7C2EA9 #A92E98
triadic
#7C2EA9 #A97C2E #2EA97C
tetradic
#7C2EA9 #A93F2E #5BA92E #2E98A9
square
#7C2EA9 #A93F2E #5BA92E #2E98A9
split-complementary
#7C2EA9 #98A92E #2EA93F
monochromatic
#351449 #592179 #7C2EA9 #9C47CD #B677DA

Accessibility & contrast

On white

7.44
#7C2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7C2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EA9
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EA9#FFFFFF#000000##FFFFFF
##7C2EA91.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#1456A6
Tritanopia (blue-blind)
#764A69
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2ea9;
/* rgb */ color: rgb(124, 46, 169);
/* oklch */ color: oklch(47.4% 0.190 310.0);
Tailwind
colors: {
  custom: {
    50: '#a66ec3',
    500: '#7c2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ea9;
$custom-light: #a66ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ea9",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 278.049,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47373,
    "c": 0.18981,
    "h": 310
  },
  "luminance": 0.09104
}

Semantic roles & 50–950 ramp

primary
#7C2EA9
secondary
#8EC271
accent
#E0477F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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