#7C2EA6#7C2EA6

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

Color values

HEX#7C2EA6
RGBrgb(124, 46, 166)
HSLhsl(279, 57%, 42%)
HSVhsv(279, 72%, 65%)
CMYKcmyk(25.3%, 72.3%, 0%, 34.9%)
CIE-LABlab(35.97, 53.05, -49.90)
CIE-LCHlch(35.97, 72.83, 316.75°)
OKLaboklab(47.15% 0.1224 -0.1412)
OKLCHoklch(47.15% 0.187 310.9)
XYZxyz(16.1708, 8.9926, 36.9529)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EA6 #58A62E
analogous
#402EA6 #7C2EA6 #A62E94
triadic
#7C2EA6 #A67C2E #2EA67C
tetradic
#7C2EA6 #A6402E #58A62E #2E94A6
square
#7C2EA6 #A6402E #58A62E #2E94A6
split-complementary
#7C2EA6 #94A62E #2EA640
monochromatic
#341346 #582176 #7C2EA6 #9D46CC #B676D9

Accessibility & contrast

On white

7.50
#7C2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7C2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EA6
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EA6#FFFFFF#000000##FFFFFF
##7C2EA61.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1A56A3
Tritanopia (blue-blind)
#764967
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2ea6;
/* rgb */ color: rgb(124, 46, 166);
/* oklch */ color: oklch(47.2% 0.187 310.9);
Tailwind
colors: {
  custom: {
    50: '#a66ec1',
    500: '#7c2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ea6;
$custom-light: #a66ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ea6",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 279,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47154,
    "c": 0.18686,
    "h": 310.9
  },
  "luminance": 0.08992
}

Semantic roles & 50–950 ramp

primary
#7C2EA6
secondary
#8CC16F
accent
#E0487D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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