#7C2EB9#7C2EB9

#7C2EB9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.206 H 305.4°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#7C2EB9
RGBrgb(124, 46, 185)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 73%)
CMYKcmyk(33%, 75.1%, 0%, 27.5%)
CIE-LABlab(37.38, 57.30, -58.93)
CIE-LCHlch(37.38, 82.20, 314.20°)
OKLaboklab(48.59% 0.1191 -0.1677)
OKLCHoklch(48.59% 0.206 305.4)
XYZxyz(18.0442, 9.7420, 46.8193)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EB9 #6BB92E
analogous
#362EB9 #7C2EB9 #B92EB0
triadic
#7C2EB9 #B97C2E #2EB97C
tetradic
#7C2EB9 #B9362E #6BB92E #2EB0B9
square
#7C2EB9 #B9362E #6BB92E #2EB0B9
split-complementary
#7C2EB9 #B0B92E #2EB936
monochromatic
#3A1657 #5B2288 #7C2EB9 #9A51D4 #B682E0

Accessibility & contrast

On white

7.12
#7C2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7C2EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EB9
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EB9#FFFFFF#000000##FFFFFF
##7C2EB91.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#715072
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2eb9;
/* rgb */ color: rgb(124, 46, 185);
/* oklch */ color: oklch(48.6% 0.206 305.4);
Tailwind
colors: {
  custom: {
    50: '#a76fcf',
    500: '#7c2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eb9;
$custom-light: #a76fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eb9",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 273.669,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48591,
    "c": 0.20568,
    "h": 305.4
  },
  "luminance": 0.09742
}

Semantic roles & 50–950 ramp

primary
#7C2EB9
secondary
#9DC97A
accent
#E3448A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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