#7F4591#7F4591

#7F4591 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.2% C 0.132 H 317.7°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#7F4591
RGBrgb(127, 69, 145)
HSLhsl(286, 36%, 42%)
HSVhsv(286, 52%, 57%)
CMYKcmyk(12.4%, 52.4%, 0%, 43.1%)
CIE-LABlab(39.26, 37.82, -31.94)
CIE-LCHlch(39.26, 49.50, 319.81°)
OKLaboklab(49.22% 0.0975 -0.0887)
OKLCHoklch(49.22% 0.132 317.7)
XYZxyz(15.9906, 10.8132, 28.0274)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4591 #579145
analogous
#594591 #7F4591 #91457D
triadic
#7F4591 #917F45 #45917F
tetradic
#7F4591 #915945 #579145 #457D91
square
#7F4591 #915945 #579145 #457D91
split-complementary
#7F4591 #7D9145 #459159
monochromatic
#361E3E #5B3168 #7F4591 #A060B3 #B889C7

Accessibility & contrast

On white

6.64
#7F4591 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7F4591 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4591
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4591#FFFFFF#000000##FFFFFF
##7F45911.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365994
Deuteranopia (green-blind)
#485E8F
Tritanopia (blue-blind)
#7F5064
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f4591;
/* rgb */ color: rgb(127, 69, 145);
/* oklch */ color: oklch(49.2% 0.132 317.7);
Tailwind
colors: {
  custom: {
    50: '#a67bb1',
    500: '#7f4591',
    950: '#000000',
  },
}
SCSS
$custom: #7f4591;
$custom-light: #a67bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4591",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 145
  },
  "hsl": {
    "h": 285.789,
    "s": 35.514,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49218,
    "c": 0.13185,
    "h": 317.7
  },
  "luminance": 0.10813
}

Semantic roles & 50–950 ramp

primary
#7F4591
secondary
#8CB280
accent
#CC5C77
background
#FAF7FA
surface
#F4EEF5
border
#CEC9CF
text
#100911
muted
#7F7B80

Preview Lab

Preview with #7F4591

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

Preview Lab → · Contrast checker → · Palette generator →

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