#7C4CBB#7C4CBB

#7C4CBB is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.5% C 0.169 H 300.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7C4CBB
RGBrgb(124, 76, 187)
HSLhsl(266, 45%, 52%)
HSVhsv(266, 59%, 73%)
CMYKcmyk(33.7%, 59.4%, 0%, 26.7%)
CIE-LABlab(42.83, 43.16, -51.29)
CIE-LCHlch(42.83, 67.03, 310.08°)
OKLaboklab(52.55% 0.0861 -0.1454)
OKLCHoklch(52.55% 0.169 300.6)
XYZxyz(19.8641, 13.0417, 48.4749)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4CBB #8BBB4C
analogous
#4C54BB #7C4CBB #B44CBB
triadic
#7C4CBB #BB7C4C #4CBB7C
tetradic
#7C4CBB #BB4C54 #8BBB4C #4CBBB4
square
#7C4CBB #BB4C54 #8BBB4C #4CBBB4
split-complementary
#7C4CBB #BBB44C #54BB4C
monochromatic
#422766 #5F3892 #7C4CBB #9C78CC #BDA5DD

Accessibility & contrast

On white

5.82
#7C4CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7C4CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4CBB
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4CBB#FFFFFF#000000##FFFFFF
##7C4CBB1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F65BF
Deuteranopia (green-blind)
#2A64B8
Tritanopia (blue-blind)
#6F637C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7c4cbb;
/* rgb */ color: rgb(124, 76, 187);
/* oklch */ color: oklch(52.5% 0.169 300.6);
Tailwind
colors: {
  custom: {
    50: '#a680d0',
    500: '#7c4cbb',
    950: '#000000',
  },
}
SCSS
$custom: #7c4cbb;
$custom-light: #a680d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4cbb",
  "rgb": {
    "r": 124,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 265.946,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5255,
    "c": 0.16897,
    "h": 300.6
  },
  "luminance": 0.13042
}

Semantic roles & 50–950 ramp

primary
#7C4CBB
secondary
#B5CA99
accent
#D5539D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7C4CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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