#7C4BB1#7C4BB1

#7C4BB1 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.7% C 0.158 H 303.5°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7C4BB1
RGBrgb(124, 75, 177)
HSLhsl(269, 40%, 49%)
HSVhsv(269, 58%, 69%)
CMYKcmyk(29.9%, 57.6%, 0%, 30.6%)
CIE-LABlab(41.99, 41.19, -46.77)
CIE-LCHlch(41.99, 62.32, 311.37°)
OKLaboklab(51.73% 0.0874 -0.1321)
OKLCHoklch(51.73% 0.158 303.5)
XYZxyz(18.7623, 12.4916, 43.0091)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4BB1 #80B14B
analogous
#4B4DB1 #7C4BB1 #AF4BB1
triadic
#7C4BB1 #B17C4B #4BB17C
tetradic
#7C4BB1 #B14B4D #80B14B #4BB1AF
square
#7C4BB1 #B14B4D #80B14B #4BB1AF
split-complementary
#7C4BB1 #B1AF4B #4DB14B
monochromatic
#40275B #5E3986 #7C4BB1 #9B75C4 #BAA0D7

Accessibility & contrast

On white

6.00
#7C4BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7C4BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4BB1
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4BB1#FFFFFF#000000##FFFFFF
##7C4BB11.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B4
Deuteranopia (green-blind)
#3463AF
Tritanopia (blue-blind)
#725F77
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c4bb1;
/* rgb */ color: rgb(124, 75, 177);
/* oklch */ color: oklch(51.7% 0.158 303.5);
Tailwind
colors: {
  custom: {
    50: '#a57fc9',
    500: '#7c4bb1',
    950: '#000000',
  },
}
SCSS
$custom: #7c4bb1;
$custom-light: #a57fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4bb1",
  "rgb": {
    "r": 124,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 268.824,
    "s": 40.476,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51733,
    "c": 0.1584,
    "h": 303.5
  },
  "luminance": 0.12492
}

Semantic roles & 50–950 ramp

primary
#7C4BB1
secondary
#ADC394
accent
#D05796
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7C4BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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