#7C40CB#7C40CB

#7C40CB is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.0% C 0.204 H 298.9°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7C40CB
RGBrgb(124, 64, 203)
HSLhsl(266, 57%, 52%)
HSVhsv(266, 68%, 80%)
CMYKcmyk(38.9%, 68.5%, 0%, 20.4%)
CIE-LABlab(41.63, 53.49, -62.53)
CIE-LCHlch(41.63, 82.28, 310.54°)
OKLaboklab(52.04% 0.0983 -0.1784)
OKLCHoklch(52.04% 0.204 298.9)
XYZxyz(20.9223, 12.2634, 57.7531)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40CB #8FCB40
analogous
#404ACB #7C40CB #C140CB
triadic
#7C40CB #CB7C40 #40CB7C
tetradic
#7C40CB #CB404A #8FCB40 #40CBC1
square
#7C40CB #CB404A #8FCB40 #40CBC1
split-complementary
#7C40CB #CBC140 #4ACB40
monochromatic
#431F72 #5F2CA2 #7C40CB #9D70D8 #BEA0E5

Accessibility & contrast

On white

6.08
#7C40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7C40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40CB
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40CB#FFFFFF#000000##FFFFFF
##7C40CB1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#696181
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7c40cb;
/* rgb */ color: rgb(124, 64, 203);
/* oklch */ color: oklch(52.0% 0.204 298.9);
Tailwind
colors: {
  custom: {
    50: '#a879dc',
    500: '#7c40cb',
    950: '#000000',
  },
}
SCSS
$custom: #7c40cb;
$custom-light: #a879dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40cb",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 265.899,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52039,
    "c": 0.20368,
    "h": 298.9
  },
  "luminance": 0.12264
}

Semantic roles & 50–950 ramp

primary
#7C40CB
secondary
#B8D295
accent
#E0479E
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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