#7C2EB0#7C2EB0

#7C2EB0 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.197 H 307.9°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7C2EB0
RGBrgb(124, 46, 176)
HSLhsl(276, 59%, 44%)
HSVhsv(276, 74%, 69%)
CMYKcmyk(29.5%, 73.9%, 0%, 31%)
CIE-LABlab(36.69, 55.27, -54.70)
CIE-LCHlch(36.69, 77.76, 315.29°)
OKLaboklab(47.9% 0.1208 -0.1553)
OKLCHoklch(47.9% 0.197 307.9)
XYZxyz(17.1240, 9.3739, 41.9731)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EB0 #62B02E
analogous
#3B2EB0 #7C2EB0 #B02EA3
triadic
#7C2EB0 #B07C2E #2EB07C
tetradic
#7C2EB0 #B03B2E #62B02E #2EA3B0
square
#7C2EB0 #B03B2E #62B02E #2EA3B0
split-complementary
#7C2EB0 #A3B02E #2EB03B
monochromatic
#38154F #5A217F #7C2EB0 #9B4BD0 #B67CDD

Accessibility & contrast

On white

7.30
#7C2EB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7C2EB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EB0
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EB0#FFFFFF#000000##FFFFFF
##7C2EB01.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#744D6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2eb0;
/* rgb */ color: rgb(124, 46, 176);
/* oklch */ color: oklch(47.9% 0.197 307.9);
Tailwind
colors: {
  custom: {
    50: '#a76ec8',
    500: '#7c2eb0',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eb0;
$custom-light: #a76ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eb0",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 176
  },
  "hsl": {
    "h": 276,
    "s": 58.559,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47896,
    "c": 0.19675,
    "h": 307.9
  },
  "luminance": 0.09374
}

Semantic roles & 50–950 ramp

primary
#7C2EB0
secondary
#95C575
accent
#E24684
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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