#7F40BB#7F40BB

#7F40BB is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.187 H 304.0°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7F40BB
RGBrgb(127, 64, 187)
HSLhsl(271, 49%, 49%)
HSVhsv(271, 66%, 73%)
CMYKcmyk(32.1%, 65.8%, 0%, 26.7%)
CIE-LABlab(40.84, 50.15, -54.47)
CIE-LCHlch(40.84, 74.04, 312.64°)
OKLaboklab(51.19% 0.1044 -0.1546)
OKLCHoklch(51.19% 0.187 304)
XYZxyz(19.5534, 11.7667, 48.2452)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40BB #7CBB40
analogous
#4240BB #7F40BB #BB40BA
triadic
#7F40BB #BB7F40 #40BB7F
tetradic
#7F40BB #BB4240 #7CBB40 #40BABB
square
#7F40BB #BB4240 #7CBB40 #40BABB
split-complementary
#7F40BB #BABB40 #40BB42
monochromatic
#412160 #60308D #7F40BB #9D6CCD #BC99DC

Accessibility & contrast

On white

6.26
#7F40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7F40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40BB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40BB#FFFFFF#000000##FFFFFF
##7F40BB1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#1760B8
Tritanopia (blue-blind)
#745B78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f40bb;
/* rgb */ color: rgb(127, 64, 187);
/* oklch */ color: oklch(51.2% 0.187 304.0);
Tailwind
colors: {
  custom: {
    50: '#a979d0',
    500: '#7f40bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f40bb;
$custom-light: #a979d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40bb",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 270.732,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51191,
    "c": 0.18654,
    "h": 304
  },
  "luminance": 0.11767
}

Semantic roles & 50–950 ramp

primary
#7F40BB
secondary
#ABC88F
accent
#D94F92
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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