#7C2EB4#7C2EB4

#7C2EB4 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.201 H 306.7°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7C2EB4
RGBrgb(124, 46, 180)
HSLhsl(275, 59%, 44%)
HSVhsv(275, 74%, 71%)
CMYKcmyk(31.1%, 74.4%, 0%, 29.4%)
CIE-LABlab(36.99, 56.17, -56.59)
CIE-LCHlch(36.99, 79.73, 314.78°)
OKLaboklab(48.2% 0.1201 -0.1608)
OKLCHoklch(48.2% 0.201 306.7)
XYZxyz(17.5256, 9.5346, 44.0883)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EB4 #66B42E
analogous
#392EB4 #7C2EB4 #B42EA9
triadic
#7C2EB4 #B47C2E #2EB47C
tetradic
#7C2EB4 #B4392E #66B42E #2EA9B4
square
#7C2EB4 #B4392E #66B42E #2EA9B4
split-complementary
#7C2EB4 #A9B42E #2EB439
monochromatic
#391553 #5A2283 #7C2EB4 #9A4ED2 #B67EDE

Accessibility & contrast

On white

7.22
#7C2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7C2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EB4
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EB4#FFFFFF#000000##FFFFFF
##7C2EB41.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#724E6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2eb4;
/* rgb */ color: rgb(124, 46, 180);
/* oklch */ color: oklch(48.2% 0.201 306.7);
Tailwind
colors: {
  custom: {
    50: '#a76fcb',
    500: '#7c2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eb4;
$custom-light: #a76fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eb4",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 274.925,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48202,
    "c": 0.20072,
    "h": 306.7
  },
  "luminance": 0.09534
}

Semantic roles & 50–950 ramp

primary
#7C2EB4
secondary
#98C777
accent
#E24587
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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