#7C2EB6#7C2EB6

#7C2EB6 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.203 H 306.2°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7C2EB6
RGBrgb(124, 46, 182)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 71%)
CMYKcmyk(31.9%, 74.7%, 0%, 28.6%)
CIE-LABlab(37.15, 56.62, -57.53)
CIE-LCHlch(37.15, 80.72, 314.54°)
OKLaboklab(48.36% 0.1197 -0.1636)
OKLCHoklch(48.36% 0.203 306.2)
XYZxyz(17.7308, 9.6166, 45.1690)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EB6 #68B62E
analogous
#382EB6 #7C2EB6 #B62EAC
triadic
#7C2EB6 #B67C2E #2EB67C
tetradic
#7C2EB6 #B6382E #68B62E #2EACB6
square
#7C2EB6 #B6382E #68B62E #2EACB6
split-complementary
#7C2EB6 #ACB62E #2EB638
monochromatic
#391554 #5B2285 #7C2EB6 #9A4FD2 #B680DF

Accessibility & contrast

On white

7.18
#7C2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7C2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EB6
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EB6#FFFFFF#000000##FFFFFF
##7C2EB61.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#724F70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2eb6;
/* rgb */ color: rgb(124, 46, 182);
/* oklch */ color: oklch(48.4% 0.203 306.2);
Tailwind
colors: {
  custom: {
    50: '#a76fcd',
    500: '#7c2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eb6;
$custom-light: #a76fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eb6",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 274.412,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48357,
    "c": 0.2027,
    "h": 306.2
  },
  "luminance": 0.09616
}

Semantic roles & 50–950 ramp

primary
#7C2EB6
secondary
#9AC878
accent
#E34588
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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