#7F40AA#7F40AA

#7F40AA is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.0% C 0.168 H 309.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7F40AA
RGBrgb(127, 64, 170)
HSLhsl(276, 45%, 46%)
HSVhsv(276, 62%, 67%)
CMYKcmyk(25.3%, 62.4%, 0%, 33.3%)
CIE-LABlab(39.72, 46.12, -46.24)
CIE-LCHlch(39.72, 65.31, 314.92°)
OKLaboklab(50.02% 0.1055 -0.1304)
OKLCHoklch(50.02% 0.168 309)
XYZxyz(17.8401, 11.0814, 39.2215)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40AA #6BAA40
analogous
#4A40AA #7F40AA #AA40A0
triadic
#7F40AA #AA7F40 #40AA7F
tetradic
#7F40AA #AA4A40 #6BAA40 #40A0AA
square
#7F40AA #AA4A40 #6BAA40 #40A0AA
split-complementary
#7F40AA #A0AA40 #40AA4A
monochromatic
#3D1F51 #5E2F7E #7F40AA #9D63C4 #B98FD5

Accessibility & contrast

On white

6.53
#7F40AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7F40AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40AA
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40AA#FFFFFF#000000##FFFFFF
##7F40AA1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5BAD
Deuteranopia (green-blind)
#315EA8
Tritanopia (blue-blind)
#79556F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f40aa;
/* rgb */ color: rgb(127, 64, 170);
/* oklch */ color: oklch(50.0% 0.168 309.0);
Tailwind
colors: {
  custom: {
    50: '#a778c4',
    500: '#7f40aa',
    950: '#000000',
  },
}
SCSS
$custom: #7f40aa;
$custom-light: #a778c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40aa",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 275.66,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50018,
    "c": 0.16772,
    "h": 309
  },
  "luminance": 0.11081
}

Semantic roles & 50–950 ramp

primary
#7F40AA
secondary
#9DC086
accent
#D55388
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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