#7F409D#7F409D

#7F409D is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.2% C 0.153 H 313.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7F409D
RGBrgb(127, 64, 157)
HSLhsl(281, 42%, 43%)
HSVhsv(281, 59%, 62%)
CMYKcmyk(19.1%, 59.2%, 0%, 38.4%)
CIE-LABlab(38.92, 43.15, -39.73)
CIE-LCHlch(38.92, 58.66, 317.36°)
OKLaboklab(49.18% 0.1054 -0.1114)
OKLCHoklch(49.18% 0.153 313.4)
XYZxyz(16.6706, 10.6136, 33.0622)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F409D #5E9D40
analogous
#50409D #7F409D #9D408C
triadic
#7F409D #9D7F40 #409D7F
tetradic
#7F409D #9D5040 #5E9D40 #408C9D
square
#7F409D #9D5040 #5E9D40 #408C9D
split-complementary
#7F409D #8C9D40 #409D50
monochromatic
#391D46 #5C2E72 #7F409D #9E5DBD #B889CF

Accessibility & contrast

On white

6.73
#7F409D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7F409D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F409D
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F409D#FFFFFF#000000##FFFFFF
##7F409D1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2358A0
Deuteranopia (green-blind)
#3C5D9B
Tritanopia (blue-blind)
#7C5068
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f409d;
/* rgb */ color: rgb(127, 64, 157);
/* oklch */ color: oklch(49.2% 0.153 313.4);
Tailwind
colors: {
  custom: {
    50: '#a778ba',
    500: '#7f409d',
    950: '#000000',
  },
}
SCSS
$custom: #7f409d;
$custom-light: #a778ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f409d",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 157
  },
  "hsl": {
    "h": 280.645,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49183,
    "c": 0.15337,
    "h": 313.4
  },
  "luminance": 0.10613
}

Semantic roles & 50–950 ramp

primary
#7F409D
secondary
#92B97F
accent
#D2567E
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F409D

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

Preview Lab → · Contrast checker → · Palette generator →

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