#7F4C8A#7F4C8A

#7F4C8A is a mid, moderate purple. Relative luminance 0.115; OKLCH L 50.0% C 0.112 H 320.3°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7F4C8A
RGBrgb(127, 76, 138)
HSLhsl(289, 29%, 42%)
HSVhsv(289, 45%, 54%)
CMYKcmyk(8%, 44.9%, 0%, 45.9%)
CIE-LABlab(40.44, 32.37, -25.85)
CIE-LCHlch(40.44, 41.43, 321.39°)
OKLaboklab(49.98% 0.0858 -0.0712)
OKLCHoklch(49.98% 0.112 320.3)
XYZxyz(15.9237, 11.5165, 25.4239)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4C8A #578A4C
analogous
#604C8A #7F4C8A #8A4C76
triadic
#7F4C8A #8A7F4C #4C8A7F
tetradic
#7F4C8A #8A604C #578A4C #4C768A
square
#7F4C8A #8A604C #578A4C #4C768A
split-complementary
#7F4C8A #768A4C #4C8A60
monochromatic
#36213B #5B3663 #7F4C8A #A068AC #B88FC1

Accessibility & contrast

On white

6.36
#7F4C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7F4C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4C8A
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4C8A#FFFFFF#000000##FFFFFF
##7F4C8A1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435C8C
Deuteranopia (green-blind)
#516188
Tritanopia (blue-blind)
#805464
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f4c8a;
/* rgb */ color: rgb(127, 76, 138);
/* oklch */ color: oklch(50.0% 0.112 320.3);
Tailwind
colors: {
  custom: {
    50: '#a57fac',
    500: '#7f4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f4c8a;
$custom-light: #a57fac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4c8a",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 289.355,
    "s": 28.972,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49975,
    "c": 0.11153,
    "h": 320.3
  },
  "luminance": 0.11516
}

Semantic roles & 50–950 ramp

primary
#7F4C8A
secondary
#8CAE84
accent
#C56374
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7F4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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