#7C40BB#7C40BB

#7C40BB is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.186 H 302.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7C40BB
RGBrgb(124, 64, 187)
HSLhsl(269, 49%, 49%)
HSVhsv(269, 66%, 73%)
CMYKcmyk(33.7%, 65.8%, 0%, 26.7%)
CIE-LABlab(40.48, 49.51, -55.08)
CIE-LCHlch(40.48, 74.06, 311.95°)
OKLaboklab(50.85% 0.1003 -0.1565)
OKLCHoklch(50.85% 0.186 302.7)
XYZxyz(19.1131, 11.5397, 48.2245)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40BB #7FBB40
analogous
#4042BB #7C40BB #BA40BB
triadic
#7C40BB #BB7C40 #40BB7C
tetradic
#7C40BB #BB4042 #7FBB40 #40BBBA
square
#7C40BB #BB4042 #7FBB40 #40BBBA
split-complementary
#7C40BB #BBBA40 #42BB40
monochromatic
#402160 #5E308D #7C40BB #9B6CCD #BA99DC

Accessibility & contrast

On white

6.35
#7C40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7C40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40BB
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40BB#FFFFFF#000000##FFFFFF
##7C40BB1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#0F5FB8
Tritanopia (blue-blind)
#6F5B78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7c40bb;
/* rgb */ color: rgb(124, 64, 187);
/* oklch */ color: oklch(50.8% 0.186 302.7);
Tailwind
colors: {
  custom: {
    50: '#a779d0',
    500: '#7c40bb',
    950: '#000000',
  },
}
SCSS
$custom: #7c40bb;
$custom-light: #a779d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40bb",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 269.268,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50845,
    "c": 0.18588,
    "h": 302.7
  },
  "luminance": 0.1154
}

Semantic roles & 50–950 ramp

primary
#7C40BB
secondary
#ACC88F
accent
#D94F96
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7C40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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