#7F409C#7F409C

#7F409C is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.1% C 0.152 H 313.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7F409C
RGBrgb(127, 64, 156)
HSLhsl(281, 42%, 43%)
HSVhsv(281, 59%, 61%)
CMYKcmyk(18.6%, 59%, 0%, 38.8%)
CIE-LABlab(38.86, 42.93, -39.23)
CIE-LCHlch(38.86, 58.15, 317.58°)
OKLaboklab(49.12% 0.1054 -0.1099)
OKLCHoklch(49.12% 0.152 313.8)
XYZxyz(16.5855, 10.5796, 32.6144)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F409C #5D9C40
analogous
#51409C #7F409C #9C408B
triadic
#7F409C #9C7F40 #409C7F
tetradic
#7F409C #9C5140 #5D9C40 #408B9C
square
#7F409C #9C5140 #5D9C40 #408B9C
split-complementary
#7F409C #8B9C40 #409C51
monochromatic
#381C45 #5C2E71 #7F409C #9E5DBC #B888CE

Accessibility & contrast

On white

6.74
#7F409C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F409C
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F409C#FFFFFF#000000##FFFFFF
##7F409C1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25589F
Deuteranopia (green-blind)
#3D5D9A
Tritanopia (blue-blind)
#7C5068
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f409c;
/* rgb */ color: rgb(127, 64, 156);
/* oklch */ color: oklch(49.1% 0.152 313.8);
Tailwind
colors: {
  custom: {
    50: '#a778ba',
    500: '#7f409c',
    950: '#000000',
  },
}
SCSS
$custom: #7f409c;
$custom-light: #a778ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f409c",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 156
  },
  "hsl": {
    "h": 281.087,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49121,
    "c": 0.15227,
    "h": 313.8
  },
  "luminance": 0.10579
}

Semantic roles & 50–950 ramp

primary
#7F409C
secondary
#91B97F
accent
#D2567D
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100911
muted
#7F7B80

Preview Lab

Preview with #7F409C

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

Preview Lab → · Contrast checker → · Palette generator →

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