#7F40BF#7F40BF

#7F40BF is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.5% C 0.191 H 303.0°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7F40BF
RGBrgb(127, 64, 191)
HSLhsl(270, 50%, 50%)
HSVhsv(270, 66%, 75%)
CMYKcmyk(33.5%, 66.5%, 0%, 25.1%)
CIE-LABlab(41.12, 51.12, -56.36)
CIE-LCHlch(41.12, 76.09, 312.21°)
OKLaboklab(51.48% 0.104 -0.1601)
OKLCHoklch(51.48% 0.191 303)
XYZxyz(19.9876, 11.9404, 50.5318)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40BF #80BF40
analogous
#4040BF #7F40BF #BF40BF
triadic
#7F40BF #BF7F40 #40BF7F
tetradic
#7F40BF #BF4040 #80BF40 #40BFBF
square
#7F40BF #BF4040 #80BF40 #40BFBF
split-complementary
#7F40BF #BFBF40 #40BF40
monochromatic
#422163 #613191 #7F40BF #9E6ECE #BC9CDE

Accessibility & contrast

On white

6.20
#7F40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7F40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40BF
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40BF#FFFFFF#000000##FFFFFF
##7F40BF1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#0B61BC
Tritanopia (blue-blind)
#725C7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f40bf;
/* rgb */ color: rgb(127, 64, 191);
/* oklch */ color: oklch(51.5% 0.191 303.0);
Tailwind
colors: {
  custom: {
    50: '#a979d3',
    500: '#7f40bf',
    950: '#000000',
  },
}
SCSS
$custom: #7f40bf;
$custom-light: #a979d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40bf",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 269.764,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.51479,
    "c": 0.19095,
    "h": 303
  },
  "luminance": 0.1194
}

Semantic roles & 50–950 ramp

primary
#7F40BF
secondary
#AECA91
accent
#D94E94
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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