#7F409F#7F409F

#7F409F is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.3% C 0.156 H 312.7°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7F409F
RGBrgb(127, 64, 159)
HSLhsl(280, 43%, 44%)
HSVhsv(280, 60%, 62%)
CMYKcmyk(20.1%, 59.7%, 0%, 37.6%)
CIE-LABlab(39.04, 43.60, -40.75)
CIE-LCHlch(39.04, 59.68, 316.94°)
OKLaboklab(49.31% 0.1055 -0.1143)
OKLCHoklch(49.31% 0.156 312.7)
XYZxyz(16.8427, 10.6825, 33.9688)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F409F #609F40
analogous
#4F409F #7F409F #9F408F
triadic
#7F409F #9F7F40 #409F7F
tetradic
#7F409F #9F4F40 #609F40 #408F9F
square
#7F409F #9F4F40 #609F40 #408F9F
split-complementary
#7F409F #8F9F40 #409F4F
monochromatic
#391D48 #5C2E73 #7F409F #9E5EBE #B88AD0

Accessibility & contrast

On white

6.70
#7F409F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7F409F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F409F
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F409F#FFFFFF#000000##FFFFFF
##7F409F1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2159A2
Deuteranopia (green-blind)
#3B5D9D
Tritanopia (blue-blind)
#7C5169
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f409f;
/* rgb */ color: rgb(127, 64, 159);
/* oklch */ color: oklch(49.3% 0.156 312.7);
Tailwind
colors: {
  custom: {
    50: '#a778bc',
    500: '#7f409f',
    950: '#000000',
  },
}
SCSS
$custom: #7f409f;
$custom-light: #a778bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f409f",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 159
  },
  "hsl": {
    "h": 279.789,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49308,
    "c": 0.15556,
    "h": 312.7
  },
  "luminance": 0.10682
}

Semantic roles & 50–950 ramp

primary
#7F409F
secondary
#94BB80
accent
#D25580
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F409F

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

Preview Lab → · Contrast checker → · Palette generator →

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