#7F40BD#7F40BD

#7F40BD is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.189 H 303.5°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7F40BD
RGBrgb(127, 64, 189)
HSLhsl(270, 49%, 50%)
HSVhsv(270, 66%, 74%)
CMYKcmyk(32.8%, 66.1%, 0%, 25.9%)
CIE-LABlab(40.98, 50.64, -55.42)
CIE-LCHlch(40.98, 75.07, 312.42°)
OKLaboklab(51.33% 0.1042 -0.1574)
OKLCHoklch(51.33% 0.189 303.5)
XYZxyz(19.7690, 11.8530, 49.3806)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40BD #7EBD40
analogous
#4140BD #7F40BD #BD40BD
triadic
#7F40BD #BD7F40 #40BD7F
tetradic
#7F40BD #BD4140 #7EBD40 #40BDBD
square
#7F40BD #BD4140 #7EBD40 #40BDBD
split-complementary
#7F40BD #BDBD40 #40BD41
monochromatic
#422162 #60318F #7F40BD #9D6DCD #BC9ADD

Accessibility & contrast

On white

6.23
#7F40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7F40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40BD
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40BD#FFFFFF#000000##FFFFFF
##7F40BD1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC1
Deuteranopia (green-blind)
#1260BA
Tritanopia (blue-blind)
#735C79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f40bd;
/* rgb */ color: rgb(127, 64, 189);
/* oklch */ color: oklch(51.3% 0.189 303.5);
Tailwind
colors: {
  custom: {
    50: '#a979d2',
    500: '#7f40bd',
    950: '#000000',
  },
}
SCSS
$custom: #7f40bd;
$custom-light: #a979d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40bd",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 270.24,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51334,
    "c": 0.18874,
    "h": 303.5
  },
  "luminance": 0.11853
}

Semantic roles & 50–950 ramp

primary
#7F40BD
secondary
#ACC990
accent
#D94F93
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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