#7F4E8A#7F4E8A

#7F4E8A is a mid, moderate purple. Relative luminance 0.118; OKLCH L 50.3% C 0.108 H 320.1°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7F4E8A
RGBrgb(127, 78, 138)
HSLhsl(289, 28%, 42%)
HSVhsv(289, 43%, 54%)
CMYKcmyk(8%, 43.5%, 0%, 45.9%)
CIE-LABlab(40.89, 31.23, -25.14)
CIE-LCHlch(40.89, 40.09, 321.16°)
OKLaboklab(50.32% 0.0827 -0.0692)
OKLCHoklch(50.32% 0.108 320.1)
XYZxyz(16.0637, 11.7963, 25.4706)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4E8A #598A4E
analogous
#614E8A #7F4E8A #8A4E77
triadic
#7F4E8A #8A7F4E #4E8A7F
tetradic
#7F4E8A #8A614E #598A4E #4E778A
square
#7F4E8A #8A614E #598A4E #4E778A
split-complementary
#7F4E8A #778A4E #4E8A61
monochromatic
#37223C #5B3863 #7F4E8A #9F6AAB #B891C1

Accessibility & contrast

On white

6.25
#7F4E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7F4E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4E8A
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4E8A#FFFFFF#000000##FFFFFF
##7F4E8A1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465D8C
Deuteranopia (green-blind)
#536288
Tritanopia (blue-blind)
#805565
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f4e8a;
/* rgb */ color: rgb(127, 78, 138);
/* oklch */ color: oklch(50.3% 0.108 320.1);
Tailwind
colors: {
  custom: {
    50: '#a581ac',
    500: '#7f4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f4e8a;
$custom-light: #a581ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4e8a",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 289,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50315,
    "c": 0.10785,
    "h": 320.1
  },
  "luminance": 0.11796
}

Semantic roles & 50–950 ramp

primary
#7F4E8A
secondary
#8DAE86
accent
#C46475
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7F4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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