#7F40D1#7F40D1

#7F40D1 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.211 H 298.8°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7F40D1
RGBrgb(127, 64, 209)
HSLhsl(266, 61%, 54%)
HSVhsv(266, 69%, 82%)
CMYKcmyk(39.2%, 69.4%, 0%, 18%)
CIE-LABlab(42.43, 55.55, -64.68)
CIE-LCHlch(42.43, 85.26, 310.66°)
OKLaboklab(52.83% 0.1015 -0.1846)
OKLCHoklch(52.83% 0.211 298.8)
XYZxyz(22.0915, 12.7820, 61.6125)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40D1 #92D140
analogous
#4049D1 #7F40D1 #C740D1
triadic
#7F40D1 #D17F40 #40D17F
tetradic
#7F40D1 #D14049 #92D140 #40D1C7
square
#7F40D1 #D14049 #92D140 #40D1C7
split-complementary
#7F40D1 #D1C740 #49D140
monochromatic
#451D79 #6129AB #7F40D1 #A071DD #C1A3E9

Accessibility & contrast

On white

5.90
#7F40D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7F40D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40D1
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40D1#FFFFFF#000000##FFFFFF
##7F40D11.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0063CE
Tritanopia (blue-blind)
#6C6384
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f40d1;
/* rgb */ color: rgb(127, 64, 209);
/* oklch */ color: oklch(52.8% 0.211 298.8);
Tailwind
colors: {
  custom: {
    50: '#aa7ae0',
    500: '#7f40d1',
    950: '#000000',
  },
}
SCSS
$custom: #7f40d1;
$custom-light: #aa7ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40d1",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 266.069,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5283,
    "c": 0.21067,
    "h": 298.8
  },
  "luminance": 0.12782
}

Semantic roles & 50–950 ramp

primary
#7F40D1
secondary
#BAD597
accent
#E4449E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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