#7C2EB7#7C2EB7

#7C2EB7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.204 H 305.9°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7C2EB7
RGBrgb(124, 46, 183)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 72%)
CMYKcmyk(32.2%, 74.9%, 0%, 28.2%)
CIE-LABlab(37.22, 56.85, -58.00)
CIE-LCHlch(37.22, 81.21, 314.42°)
OKLaboklab(48.43% 0.1195 -0.165)
OKLCHoklch(48.43% 0.204 305.9)
XYZxyz(17.8345, 9.6581, 45.7152)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EB7 #69B72E
analogous
#382EB7 #7C2EB7 #B72EAD
triadic
#7C2EB7 #B77C2E #2EB77C
tetradic
#7C2EB7 #B7382E #69B72E #2EADB7
square
#7C2EB7 #B7382E #69B72E #2EADB7
split-complementary
#7C2EB7 #ADB72E #2EB738
monochromatic
#3A1555 #5B2286 #7C2EB7 #9A4FD3 #B680DF

Accessibility & contrast

On white

7.16
#7C2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7C2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EB7
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EB7#FFFFFF#000000##FFFFFF
##7C2EB71.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#715071
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2eb7;
/* rgb */ color: rgb(124, 46, 183);
/* oklch */ color: oklch(48.4% 0.204 305.9);
Tailwind
colors: {
  custom: {
    50: '#a76fcd',
    500: '#7c2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eb7;
$custom-light: #a76fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eb7",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 274.161,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48434,
    "c": 0.20369,
    "h": 305.9
  },
  "luminance": 0.09658
}

Semantic roles & 50–950 ramp

primary
#7C2EB7
secondary
#9BC879
accent
#E34589
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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