#7C2EA5#7C2EA5

#7C2EA5 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.186 H 311.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7C2EA5
RGBrgb(124, 46, 165)
HSLhsl(279, 56%, 41%)
HSVhsv(279, 72%, 65%)
CMYKcmyk(24.8%, 72.1%, 0%, 35.3%)
CIE-LABlab(35.90, 52.83, -49.42)
CIE-LCHlch(35.90, 72.34, 316.91°)
OKLaboklab(47.08% 0.1226 -0.1397)
OKLCHoklch(47.08% 0.186 311.3)
XYZxyz(16.0794, 8.9561, 36.4717)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EA5 #57A52E
analogous
#412EA5 #7C2EA5 #A52E93
triadic
#7C2EA5 #A57C2E #2EA57C
tetradic
#7C2EA5 #A5412E #57A52E #2E93A5
square
#7C2EA5 #A5412E #57A52E #2E93A5
split-complementary
#7C2EA5 #93A52E #2EA541
monochromatic
#341345 #582175 #7C2EA5 #9D45CB #B675D8

Accessibility & contrast

On white

7.52
#7C2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7C2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EA5
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EA5#FFFFFF#000000##FFFFFF
##7C2EA51.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#1C56A2
Tritanopia (blue-blind)
#774866
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2ea5;
/* rgb */ color: rgb(124, 46, 165);
/* oklch */ color: oklch(47.1% 0.186 311.3);
Tailwind
colors: {
  custom: {
    50: '#a66ec0',
    500: '#7c2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ea5;
$custom-light: #a66ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ea5",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 279.328,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47081,
    "c": 0.18586,
    "h": 311.3
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#7C2EA5
secondary
#8BC06F
accent
#E0487C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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