#7C2EA7#7C2EA7

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

Color values

HEX#7C2EA7
RGBrgb(124, 46, 167)
HSLhsl(279, 57%, 42%)
HSVhsv(279, 72%, 65%)
CMYKcmyk(25.7%, 72.5%, 0%, 34.5%)
CIE-LABlab(36.04, 53.27, -50.39)
CIE-LCHlch(36.04, 73.32, 316.59°)
OKLaboklab(47.23% 0.1223 -0.1426)
OKLCHoklch(47.23% 0.188 310.6)
XYZxyz(16.2629, 9.0295, 37.4379)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EA7 #59A72E
analogous
#402EA7 #7C2EA7 #A72E96
triadic
#7C2EA7 #A77C2E #2EA77C
tetradic
#7C2EA7 #A7402E #59A72E #2E96A7
square
#7C2EA7 #A7402E #59A72E #2E96A7
split-complementary
#7C2EA7 #96A72E #2EA740
monochromatic
#351447 #582177 #7C2EA7 #9C46CC #B676D9

Accessibility & contrast

On white

7.48
#7C2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7C2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EA7
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EA7#FFFFFF#000000##FFFFFF
##7C2EA71.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1956A4
Tritanopia (blue-blind)
#764968
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2ea7;
/* rgb */ color: rgb(124, 46, 167);
/* oklch */ color: oklch(47.2% 0.188 310.6);
Tailwind
colors: {
  custom: {
    50: '#a66ec2',
    500: '#7c2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ea7;
$custom-light: #a66ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ea7",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 278.678,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47227,
    "c": 0.18784,
    "h": 310.6
  },
  "luminance": 0.09029
}

Semantic roles & 50–950 ramp

primary
#7C2EA7
secondary
#8DC170
accent
#E0487E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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