#7F4E8D#7F4E8D

#7F4E8D is a mid, moderate purple. Relative luminance 0.119; OKLCH L 50.5% C 0.111 H 318.5°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7F4E8D
RGBrgb(127, 78, 141)
HSLhsl(287, 29%, 43%)
HSVhsv(287, 45%, 55%)
CMYKcmyk(9.9%, 44.7%, 0%, 44.7%)
CIE-LABlab(41.03, 31.87, -26.74)
CIE-LCHlch(41.03, 41.61, 320.00°)
OKLaboklab(50.47% 0.0833 -0.0738)
OKLCHoklch(50.47% 0.111 318.5)
XYZxyz(16.2839, 11.8844, 26.6303)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4E8D #5C8D4E
analogous
#604E8D #7F4E8D #8D4E7B
triadic
#7F4E8D #8D7F4E #4E8D7F
tetradic
#7F4E8D #8D604E #5C8D4E #4E7B8D
square
#7F4E8D #8D604E #5C8D4E #4E7B8D
split-complementary
#7F4E8D #7B8D4E #4E8D60
monochromatic
#38223E #5C3866 #7F4E8D #9E6BAD #B892C3

Accessibility & contrast

On white

6.22
#7F4E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7F4E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4E8D
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4E8D#FFFFFF#000000##FFFFFF
##7F4E8D1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445D8F
Deuteranopia (green-blind)
#51628B
Tritanopia (blue-blind)
#7F5667
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f4e8d;
/* rgb */ color: rgb(127, 78, 141);
/* oklch */ color: oklch(50.5% 0.111 318.5);
Tailwind
colors: {
  custom: {
    50: '#a581ae',
    500: '#7f4e8d',
    950: '#000000',
  },
}
SCSS
$custom: #7f4e8d;
$custom-light: #a581ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4e8d",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 286.667,
    "s": 28.767,
    "l": 42.941
  },
  "oklch": {
    "l": 0.50467,
    "c": 0.1113,
    "h": 318.5
  },
  "luminance": 0.11884
}

Semantic roles & 50–950 ramp

primary
#7F4E8D
secondary
#90AF87
accent
#C56379
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7F4E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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