#7F40AF#7F40AF

#7F40AF is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.173 H 307.4°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7F40AF
RGBrgb(127, 64, 175)
HSLhsl(274, 46%, 47%)
HSVhsv(274, 63%, 69%)
CMYKcmyk(27.4%, 63.4%, 0%, 31.4%)
CIE-LABlab(40.04, 47.29, -48.69)
CIE-LCHlch(40.04, 67.88, 314.16°)
OKLaboklab(50.35% 0.1053 -0.1376)
OKLCHoklch(50.35% 0.173 307.4)
XYZxyz(18.3221, 11.2742, 41.7600)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40AF #70AF40
analogous
#4740AF #7F40AF #AF40A8
triadic
#7F40AF #AF7F40 #40AF7F
tetradic
#7F40AF #AF4740 #70AF40 #40A8AF
square
#7F40AF #AF4740 #70AF40 #40A8AF
split-complementary
#7F40AF #A8AF40 #40AF47
monochromatic
#3E1F55 #5E3082 #7F40AF #9D65C7 #B992D7

Accessibility & contrast

On white

6.45
#7F40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7F40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40AF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40AF#FFFFFF#000000##FFFFFF
##7F40AF1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#2B5FAC
Tritanopia (blue-blind)
#775772
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f40af;
/* rgb */ color: rgb(127, 64, 175);
/* oklch */ color: oklch(50.4% 0.173 307.4);
Tailwind
colors: {
  custom: {
    50: '#a879c7',
    500: '#7f40af',
    950: '#000000',
  },
}
SCSS
$custom: #7f40af;
$custom-light: #a879c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40af",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 274.054,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50354,
    "c": 0.17326,
    "h": 307.4
  },
  "luminance": 0.11274
}

Semantic roles & 50–950 ramp

primary
#7F40AF
secondary
#A1C388
accent
#D6528B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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