#7F40BE#7F40BE

#7F40BE is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.190 H 303.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7F40BE
RGBrgb(127, 64, 190)
HSLhsl(270, 50%, 50%)
HSVhsv(270, 66%, 75%)
CMYKcmyk(33.2%, 66.3%, 0%, 25.5%)
CIE-LABlab(41.05, 50.88, -55.89)
CIE-LCHlch(41.05, 75.58, 312.31°)
OKLaboklab(51.41% 0.1041 -0.1587)
OKLCHoklch(51.41% 0.19 303.3)
XYZxyz(19.8779, 11.8965, 49.9543)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40BE #7FBE40
analogous
#4040BE #7F40BE #BE40BE
triadic
#7F40BE #BE7F40 #40BE7F
tetradic
#7F40BE #BE4040 #7FBE40 #40BEBE
square
#7F40BE #BE4040 #7FBE40 #40BEBE
split-complementary
#7F40BE #BEBE40 #40BE40
monochromatic
#422162 #603190 #7F40BE #9E6DCE #BC9BDD

Accessibility & contrast

On white

6.21
#7F40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7F40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40BE
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40BE#FFFFFF#000000##FFFFFF
##7F40BE1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#0F61BB
Tritanopia (blue-blind)
#735C7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f40be;
/* rgb */ color: rgb(127, 64, 190);
/* oklch */ color: oklch(51.4% 0.190 303.3);
Tailwind
colors: {
  custom: {
    50: '#a979d2',
    500: '#7f40be',
    950: '#000000',
  },
}
SCSS
$custom: #7f40be;
$custom-light: #a979d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40be",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 270,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51406,
    "c": 0.18984,
    "h": 303.3
  },
  "luminance": 0.11897
}

Semantic roles & 50–950 ramp

primary
#7F40BE
secondary
#ADC990
accent
#D94F94
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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