#7C2EB8#7C2EB8

#7C2EB8 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.205 H 305.6°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7C2EB8
RGBrgb(124, 46, 184)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 72%)
CMYKcmyk(32.6%, 75%, 0%, 27.8%)
CIE-LABlab(37.30, 57.07, -58.47)
CIE-LCHlch(37.30, 81.70, 314.31°)
OKLaboklab(48.51% 0.1193 -0.1663)
OKLCHoklch(48.51% 0.205 305.6)
XYZxyz(17.9390, 9.6999, 46.2653)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EB8 #6AB82E
analogous
#372EB8 #7C2EB8 #B82EAF
triadic
#7C2EB8 #B87C2E #2EB87C
tetradic
#7C2EB8 #B8372E #6AB82E #2EAFB8
square
#7C2EB8 #B8372E #6AB82E #2EAFB8
split-complementary
#7C2EB8 #AFB82E #2EB837
monochromatic
#3A1656 #5B2287 #7C2EB8 #9A50D3 #B681DF

Accessibility & contrast

On white

7.14
#7C2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7C2EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EB8
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EB8#FFFFFF#000000##FFFFFF
##7C2EB81.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#715071
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2eb8;
/* rgb */ color: rgb(124, 46, 184);
/* oklch */ color: oklch(48.5% 0.205 305.6);
Tailwind
colors: {
  custom: {
    50: '#a76fce',
    500: '#7c2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eb8;
$custom-light: #a76fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eb8",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 273.913,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48512,
    "c": 0.20468,
    "h": 305.6
  },
  "luminance": 0.097
}

Semantic roles & 50–950 ramp

primary
#7C2EB8
secondary
#9CC879
accent
#E3458A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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