#7C2EAA#7C2EAA

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

Color values

HEX#7C2EAA
RGBrgb(124, 46, 170)
HSLhsl(278, 57%, 42%)
HSVhsv(278, 73%, 67%)
CMYKcmyk(27.1%, 72.9%, 0%, 33.3%)
CIE-LABlab(36.26, 53.93, -51.84)
CIE-LCHlch(36.26, 74.80, 316.13°)
OKLaboklab(47.45% 0.1218 -0.1468)
OKLCHoklch(47.45% 0.191 309.7)
XYZxyz(16.5434, 9.1417, 38.9154)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EAA #5CAA2E
analogous
#3E2EAA #7C2EAA #AA2E9A
triadic
#7C2EAA #AA7C2E #2EAA7C
tetradic
#7C2EAA #AA3E2E #5CAA2E #2E9AAA
square
#7C2EAA #AA3E2E #5CAA2E #2E9AAA
split-complementary
#7C2EAA #9AAA2E #2EAA3E
monochromatic
#36144A #59217A #7C2EAA #9C48CD #B678DA

Accessibility & contrast

On white

7.43
#7C2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7C2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EAA
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EAA#FFFFFF#000000##FFFFFF
##7C2EAA1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#1256A7
Tritanopia (blue-blind)
#754A69
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2eaa;
/* rgb */ color: rgb(124, 46, 170);
/* oklch */ color: oklch(47.4% 0.191 309.7);
Tailwind
colors: {
  custom: {
    50: '#a66ec4',
    500: '#7c2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eaa;
$custom-light: #a66ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eaa",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 277.742,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47447,
    "c": 0.19081,
    "h": 309.7
  },
  "luminance": 0.09141
}

Semantic roles & 50–950 ramp

primary
#7C2EAA
secondary
#8FC371
accent
#E14780
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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