#7C4BB2#7C4BB2

#7C4BB2 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.8% C 0.160 H 303.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7C4BB2
RGBrgb(124, 75, 178)
HSLhsl(269, 41%, 50%)
HSVhsv(269, 58%, 70%)
CMYKcmyk(30.3%, 57.9%, 0%, 30.2%)
CIE-LABlab(42.05, 41.44, -47.26)
CIE-LCHlch(42.05, 62.85, 311.24°)
OKLaboklab(51.8% 0.0874 -0.1335)
OKLCHoklch(51.8% 0.16 303.2)
XYZxyz(18.8623, 12.5316, 43.5360)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4BB2 #81B24B
analogous
#4B4EB2 #7C4BB2 #B04BB2
triadic
#7C4BB2 #B27C4B #4BB27C
tetradic
#7C4BB2 #B24B4E #81B24B #4BB2B0
square
#7C4BB2 #B24B4E #81B24B #4BB2B0
split-complementary
#7C4BB2 #B2B04B #4EB24B
monochromatic
#40275C #5E3987 #7C4BB2 #9B75C5 #BAA0D7

Accessibility & contrast

On white

5.99
#7C4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7C4BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4BB2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4BB2#FFFFFF#000000##FFFFFF
##7C4BB21.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#3363B0
Tritanopia (blue-blind)
#725F77
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c4bb2;
/* rgb */ color: rgb(124, 75, 178);
/* oklch */ color: oklch(51.8% 0.160 303.2);
Tailwind
colors: {
  custom: {
    50: '#a57fca',
    500: '#7c4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7c4bb2;
$custom-light: #a57fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4bb2",
  "rgb": {
    "r": 124,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 268.544,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51799,
    "c": 0.15961,
    "h": 303.2
  },
  "luminance": 0.12532
}

Semantic roles & 50–950 ramp

primary
#7C4BB2
secondary
#AEC495
accent
#D15797
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7C4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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