#7D40C7#7D40C7

#7D40C7 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.8% C 0.199 H 300.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7D40C7
RGBrgb(125, 64, 199)
HSLhsl(267, 55%, 52%)
HSVhsv(267, 68%, 78%)
CMYKcmyk(37.2%, 67.8%, 0%, 22%)
CIE-LABlab(41.45, 52.68, -60.49)
CIE-LCHlch(41.45, 80.22, 311.05°)
OKLaboklab(51.85% 0.1003 -0.1724)
OKLCHoklch(51.85% 0.199 300.2)
XYZxyz(20.5971, 12.1501, 55.2818)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40C7 #8AC740
analogous
#4047C7 #7D40C7 #C140C7
triadic
#7D40C7 #C77D40 #40C77D
tetradic
#7D40C7 #C74047 #8AC740 #40C7C1
square
#7D40C7 #C74047 #8AC740 #40C7C1
split-complementary
#7D40C7 #C7C140 #47C740
monochromatic
#43206D #602E9C #7D40C7 #9D6FD5 #BD9FE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D40C7#FFFFFF#000000##FFFFFF
##7D40C71.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)
#0061CB
Deuteranopia (green-blind)
#0061C4
Tritanopia (blue-blind)
#6D607E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d40c7;
/* rgb */ color: rgb(125, 64, 199);
/* oklch */ color: oklch(51.8% 0.199 300.2);
Tailwind
colors: {
  custom: {
    50: '#a879d9',
    500: '#7d40c7',
    950: '#000000',
  },
}
SCSS
$custom: #7d40c7;
$custom-light: #a879d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40c7",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 267.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51845,
    "c": 0.19941,
    "h": 300.2
  },
  "luminance": 0.1215
}

Semantic roles & 50–950 ramp

primary
#7D40C7
secondary
#B4CF94
accent
#DE4A9B
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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