#7C40BF#7C40BF

#7C40BF is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.190 H 301.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7C40BF
RGBrgb(124, 64, 191)
HSLhsl(268, 50%, 50%)
HSVhsv(268, 66%, 75%)
CMYKcmyk(35.1%, 66.5%, 0%, 25.1%)
CIE-LABlab(40.76, 50.49, -56.97)
CIE-LCHlch(40.76, 76.12, 311.55°)
OKLaboklab(51.14% 0.0999 -0.162)
OKLCHoklch(51.14% 0.19 301.7)
XYZxyz(19.5473, 11.7134, 50.5112)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40BF #83BF40
analogous
#4044BF #7C40BF #BB40BF
triadic
#7C40BF #BF7C40 #40BF7C
tetradic
#7C40BF #BF4044 #83BF40 #40BFBB
square
#7C40BF #BF4044 #83BF40 #40BFBB
split-complementary
#7C40BF #BFBB40 #44BF40
monochromatic
#402163 #5E3191 #7C40BF #9B6ECE #BB9CDE

Accessibility & contrast

On white

6.28
#7C40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7C40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40BF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40BF#FFFFFF#000000##FFFFFF
##7C40BF1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#6E5D7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7c40bf;
/* rgb */ color: rgb(124, 64, 191);
/* oklch */ color: oklch(51.1% 0.190 301.7);
Tailwind
colors: {
  custom: {
    50: '#a779d3',
    500: '#7c40bf',
    950: '#000000',
  },
}
SCSS
$custom: #7c40bf;
$custom-light: #a779d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40bf",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 268.346,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.51137,
    "c": 0.19036,
    "h": 301.7
  },
  "luminance": 0.11713
}

Semantic roles & 50–950 ramp

primary
#7C40BF
secondary
#AFCA91
accent
#D94E98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7C40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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