#7F409A#7F409A

#7F409A is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.0% C 0.150 H 314.6°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7F409A
RGBrgb(127, 64, 154)
HSLhsl(282, 41%, 43%)
HSVhsv(282, 58%, 60%)
CMYKcmyk(17.5%, 58.4%, 0%, 39.6%)
CIE-LABlab(38.75, 42.48, -38.21)
CIE-LCHlch(38.75, 57.13, 318.03°)
OKLaboklab(49% 0.1053 -0.1069)
OKLCHoklch(49% 0.15 314.6)
XYZxyz(16.4176, 10.5124, 31.7298)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F409A #5B9A40
analogous
#52409A #7F409A #9A4088
triadic
#7F409A #9A7F40 #409A7F
tetradic
#7F409A #9A5240 #5B9A40 #40889A
square
#7F409A #9A5240 #5B9A40 #40889A
split-complementary
#7F409A #889A40 #409A52
monochromatic
#381C44 #5B2E6F #7F409A #9F5CBB #B887CD

Accessibility & contrast

On white

6.77
#7F409A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7F409A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F409A
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F409A#FFFFFF#000000##FFFFFF
##7F409A1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27589D
Deuteranopia (green-blind)
#3E5D98
Tritanopia (blue-blind)
#7D4F67
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f409a;
/* rgb */ color: rgb(127, 64, 154);
/* oklch */ color: oklch(49.0% 0.150 314.6);
Tailwind
colors: {
  custom: {
    50: '#a778b8',
    500: '#7f409a',
    950: '#000000',
  },
}
SCSS
$custom: #7f409a;
$custom-light: #a778b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f409a",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 154
  },
  "hsl": {
    "h": 282,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48999,
    "c": 0.15007,
    "h": 314.6
  },
  "luminance": 0.10512
}

Semantic roles & 50–950 ramp

primary
#7F409A
secondary
#8FB87E
accent
#D1577B
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100911
muted
#7F7B80

Preview Lab

Preview with #7F409A

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

Preview Lab → · Contrast checker → · Palette generator →

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