#7F40BC#7F40BC

#7F40BC is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.188 H 303.8°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7F40BC
RGBrgb(127, 64, 188)
HSLhsl(270, 49%, 49%)
HSVhsv(270, 66%, 74%)
CMYKcmyk(32.4%, 66%, 0%, 26.3%)
CIE-LABlab(40.91, 50.39, -54.94)
CIE-LCHlch(40.91, 74.55, 312.53°)
OKLaboklab(51.26% 0.1043 -0.156)
OKLCHoklch(51.26% 0.188 303.8)
XYZxyz(19.6608, 11.8097, 48.8109)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40BC #7DBC40
analogous
#4140BC #7F40BC #BC40BB
triadic
#7F40BC #BC7F40 #40BC7F
tetradic
#7F40BC #BC4140 #7DBC40 #40BBBC
square
#7F40BC #BC4140 #7DBC40 #40BBBC
split-complementary
#7F40BC #BBBC40 #40BC41
monochromatic
#412161 #60308E #7F40BC #9D6CCD #BC9ADD

Accessibility & contrast

On white

6.25
#7F40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7F40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40BC
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40BC#FFFFFF#000000##FFFFFF
##7F40BC1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#1560B9
Tritanopia (blue-blind)
#735B78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f40bc;
/* rgb */ color: rgb(127, 64, 188);
/* oklch */ color: oklch(51.3% 0.188 303.8);
Tailwind
colors: {
  custom: {
    50: '#a979d1',
    500: '#7f40bc',
    950: '#000000',
  },
}
SCSS
$custom: #7f40bc;
$custom-light: #a979d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40bc",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 270.484,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51262,
    "c": 0.18764,
    "h": 303.8
  },
  "luminance": 0.1181
}

Semantic roles & 50–950 ramp

primary
#7F40BC
secondary
#ABC98F
accent
#D94F93
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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