#7C40C9#7C40C9

#7C40C9 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.201 H 299.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7C40C9
RGBrgb(124, 64, 201)
HSLhsl(266, 56%, 52%)
HSVhsv(266, 68%, 79%)
CMYKcmyk(38.3%, 68.2%, 0%, 21.2%)
CIE-LABlab(41.48, 52.98, -61.61)
CIE-LCHlch(41.48, 81.26, 310.69°)
OKLaboklab(51.89% 0.0986 -0.1757)
OKLCHoklch(51.89% 0.201 299.3)
XYZxyz(20.6856, 12.1687, 56.5060)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40C9 #8DC940
analogous
#4049C9 #7C40C9 #C040C9
triadic
#7C40C9 #C97C40 #40C97C
tetradic
#7C40C9 #C94049 #8DC940 #40C9C0
square
#7C40C9 #C94049 #8DC940 #40C9C0
split-complementary
#7C40C9 #C9C040 #49C940
monochromatic
#421F6F #5F2D9F #7C40C9 #9D70D6 #BD9FE4

Accessibility & contrast

On white

6.12
#7C40C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7C40C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40C9
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40C9#FFFFFF#000000##FFFFFF
##7C40C91.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CD
Deuteranopia (green-blind)
#0061C6
Tritanopia (blue-blind)
#6A607F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7c40c9;
/* rgb */ color: rgb(124, 64, 201);
/* oklch */ color: oklch(51.9% 0.201 299.3);
Tailwind
colors: {
  custom: {
    50: '#a879da',
    500: '#7c40c9',
    950: '#000000',
  },
}
SCSS
$custom: #7c40c9;
$custom-light: #a879da;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40c9",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 266.277,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51886,
    "c": 0.20146,
    "h": 299.3
  },
  "luminance": 0.12169
}

Semantic roles & 50–950 ramp

primary
#7C40C9
secondary
#B6D094
accent
#DF499D
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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