#7C4D8B#7C4D8B

#7C4D8B is a mid, moderate purple. Relative luminance 0.115; OKLCH L 49.8% C 0.109 H 317.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7C4D8B
RGBrgb(124, 77, 139)
HSLhsl(285, 29%, 42%)
HSVhsv(285, 45%, 55%)
CMYKcmyk(10.8%, 44.6%, 0%, 45.5%)
CIE-LABlab(40.34, 31.06, -26.64)
CIE-LCHlch(40.34, 40.92, 319.38°)
OKLaboklab(49.84% 0.0807 -0.0735)
OKLCHoklch(49.84% 0.109 317.6)
XYZxyz(15.6256, 11.4574, 25.8095)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4D8B #5C8B4D
analogous
#5D4D8B #7C4D8B #8B4D7B
triadic
#7C4D8B #8B7C4D #4D8B7C
tetradic
#7C4D8B #8B5D4D #5C8B4D #4D7B8B
square
#7C4D8B #8B5D4D #5C8B4D #4D7B8B
split-complementary
#7C4D8B #7B8B4D #4D8B5D
monochromatic
#36213C #593764 #7C4D8B #9C69AC #B691C2

Accessibility & contrast

On white

6.38
#7C4D8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7C4D8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4D8B
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4D8B#FFFFFF#000000##FFFFFF
##7C4D8B1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435C8D
Deuteranopia (green-blind)
#4F6189
Tritanopia (blue-blind)
#7C5565
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7c4d8b;
/* rgb */ color: rgb(124, 77, 139);
/* oklch */ color: oklch(49.8% 0.109 317.6);
Tailwind
colors: {
  custom: {
    50: '#a380ad',
    500: '#7c4d8b',
    950: '#000000',
  },
}
SCSS
$custom: #7c4d8b;
$custom-light: #a380ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4d8b",
  "rgb": {
    "r": 124,
    "g": 77,
    "b": 139
  },
  "hsl": {
    "h": 285.484,
    "s": 28.704,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49837,
    "c": 0.10916,
    "h": 317.6
  },
  "luminance": 0.11457
}

Semantic roles & 50–950 ramp

primary
#7C4D8B
secondary
#8FAE86
accent
#C5637B
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7C4D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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