#7F4792#7F4792

#7F4792 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 49.6% C 0.130 H 317.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7F4792
RGBrgb(127, 71, 146)
HSLhsl(285, 35%, 43%)
HSVhsv(285, 51%, 57%)
CMYKcmyk(13%, 51.4%, 0%, 42.7%)
CIE-LABlab(39.74, 36.93, -31.80)
CIE-LCHlch(39.74, 48.73, 319.27°)
OKLaboklab(49.59% 0.0947 -0.0883)
OKLCHoklch(49.59% 0.13 317)
XYZxyz(16.1932, 11.0944, 28.4770)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4792 #5A9247
analogous
#5A4792 #7F4792 #92477F
triadic
#7F4792 #927F47 #47927F
tetradic
#7F4792 #925A47 #5A9247 #477F92
square
#7F4792 #925A47 #5A9247 #477F92
split-complementary
#7F4792 #7F9247 #47925A
monochromatic
#371F40 #5B3369 #7F4792 #9F63B3 #B88CC7

Accessibility & contrast

On white

6.52
#7F4792 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7F4792 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4792
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4792#FFFFFF#000000##FFFFFF
##7F47921.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385A95
Deuteranopia (green-blind)
#495F90
Tritanopia (blue-blind)
#7E5266
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f4792;
/* rgb */ color: rgb(127, 71, 146);
/* oklch */ color: oklch(49.6% 0.130 317.0);
Tailwind
colors: {
  custom: {
    50: '#a67cb2',
    500: '#7f4792',
    950: '#000000',
  },
}
SCSS
$custom: #7f4792;
$custom-light: #a67cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4792",
  "rgb": {
    "r": 127,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 284.8,
    "s": 34.562,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49586,
    "c": 0.12951,
    "h": 317
  },
  "luminance": 0.11094
}

Semantic roles & 50–950 ramp

primary
#7F4792
secondary
#8EB382
accent
#CB5D79
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7F4792

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

Preview Lab → · Contrast checker → · Palette generator →

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