#7C4BB3#7C4BB3

#7C4BB3 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.161 H 302.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7C4BB3
RGBrgb(124, 75, 179)
HSLhsl(268, 41%, 50%)
HSVhsv(268, 58%, 70%)
CMYKcmyk(30.7%, 58.1%, 0%, 29.8%)
CIE-LABlab(42.11, 41.69, -47.75)
CIE-LCHlch(42.11, 63.38, 311.12°)
OKLaboklab(51.86% 0.0874 -0.135)
OKLCHoklch(51.86% 0.161 302.9)
XYZxyz(18.9631, 12.5719, 44.0667)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4BB3 #82B34B
analogous
#4B4EB3 #7C4BB3 #B04BB3
triadic
#7C4BB3 #B37C4B #4BB37C
tetradic
#7C4BB3 #B34B4E #82B34B #4BB3B0
square
#7C4BB3 #B34B4E #82B34B #4BB3B0
split-complementary
#7C4BB3 #B3B04B #4EB34B
monochromatic
#40275D #5E3988 #7C4BB3 #9B76C5 #BBA1D8

Accessibility & contrast

On white

5.98
#7C4BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C4BB3
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4BB3#FFFFFF#000000##FFFFFF
##7C4BB31.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B6
Deuteranopia (green-blind)
#3263B1
Tritanopia (blue-blind)
#726078
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c4bb3;
/* rgb */ color: rgb(124, 75, 179);
/* oklch */ color: oklch(51.9% 0.161 302.9);
Tailwind
colors: {
  custom: {
    50: '#a57fca',
    500: '#7c4bb3',
    950: '#000000',
  },
}
SCSS
$custom: #7c4bb3;
$custom-light: #a57fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4bb3",
  "rgb": {
    "r": 124,
    "g": 75,
    "b": 179
  },
  "hsl": {
    "h": 268.269,
    "s": 40.945,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51864,
    "c": 0.16081,
    "h": 302.9
  },
  "luminance": 0.12572
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C4BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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