#7C2EB2#7C2EB2

#7C2EB2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.0% C 0.199 H 307.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7C2EB2
RGBrgb(124, 46, 178)
HSLhsl(275, 59%, 44%)
HSVhsv(275, 74%, 70%)
CMYKcmyk(30.3%, 74.2%, 0%, 30.2%)
CIE-LABlab(36.84, 55.71, -55.65)
CIE-LCHlch(36.84, 78.75, 315.03°)
OKLaboklab(48.05% 0.1205 -0.1581)
OKLCHoklch(48.05% 0.199 307.3)
XYZxyz(17.3233, 9.4537, 43.0230)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EB2 #64B22E
analogous
#3A2EB2 #7C2EB2 #B22EA6
triadic
#7C2EB2 #B27C2E #2EB27C
tetradic
#7C2EB2 #B23A2E #64B22E #2EA6B2
square
#7C2EB2 #B23A2E #64B22E #2EA6B2
split-complementary
#7C2EB2 #A6B22E #2EB23A
monochromatic
#381551 #5A2181 #7C2EB2 #9B4CD1 #B67DDD

Accessibility & contrast

On white

7.26
#7C2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7C2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EB2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EB2#FFFFFF#000000##FFFFFF
##7C2EB21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#734E6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2eb2;
/* rgb */ color: rgb(124, 46, 178);
/* oklch */ color: oklch(48.0% 0.199 307.3);
Tailwind
colors: {
  custom: {
    50: '#a76eca',
    500: '#7c2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eb2;
$custom-light: #a76eca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eb2",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 275.455,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48049,
    "c": 0.19874,
    "h": 307.3
  },
  "luminance": 0.09453
}

Semantic roles & 50–950 ramp

primary
#7C2EB2
secondary
#97C676
accent
#E24686
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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