#7C4DB7#7C4DB7

#7C4DB7 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.4% C 0.163 H 301.5°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7C4DB7
RGBrgb(124, 77, 183)
HSLhsl(267, 42%, 51%)
HSVhsv(267, 58%, 72%)
CMYKcmyk(32.2%, 57.9%, 0%, 28.2%)
CIE-LABlab(42.78, 41.59, -49.02)
CIE-LCHlch(42.78, 64.29, 310.31°)
OKLaboklab(52.43% 0.0849 -0.1387)
OKLCHoklch(52.43% 0.163 301.5)
XYZxyz(19.5113, 13.0117, 46.2741)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4DB7 #88B74D
analogous
#4D53B7 #7C4DB7 #B14DB7
triadic
#7C4DB7 #B77C4D #4DB77C
tetradic
#7C4DB7 #B74D53 #88B74D #4DB7B1
square
#7C4DB7 #B74D53 #88B74D #4DB7B1
split-complementary
#7C4DB7 #B7B14D #53B74D
monochromatic
#412862 #5F398E #7C4DB7 #9C79C9 #BCA4DA

Accessibility & contrast

On white

5.83
#7C4DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7C4DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4DB7
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4DB7#FFFFFF#000000##FFFFFF
##7C4DB71.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C64BA
Deuteranopia (green-blind)
#3065B5
Tritanopia (blue-blind)
#70627A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7c4db7;
/* rgb */ color: rgb(124, 77, 183);
/* oklch */ color: oklch(52.4% 0.163 301.5);
Tailwind
colors: {
  custom: {
    50: '#a581cd',
    500: '#7c4db7',
    950: '#000000',
  },
}
SCSS
$custom: #7c4db7;
$custom-light: #a581cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4db7",
  "rgb": {
    "r": 124,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 266.604,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52435,
    "c": 0.16263,
    "h": 301.5
  },
  "luminance": 0.13012
}

Semantic roles & 50–950 ramp

primary
#7C4DB7
secondary
#B3C798
accent
#D2569B
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7C4DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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