#7D40C1#7D40C1

#7D40C1 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.193 H 301.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7D40C1
RGBrgb(125, 64, 193)
HSLhsl(268, 51%, 50%)
HSVhsv(268, 67%, 76%)
CMYKcmyk(35.2%, 66.8%, 0%, 24.3%)
CIE-LABlab(41.02, 51.19, -57.70)
CIE-LCHlch(41.02, 77.14, 311.58°)
OKLaboklab(51.4% 0.1011 -0.1642)
OKLCHoklch(51.4% 0.193 301.6)
XYZxyz(19.9142, 11.8769, 51.6851)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40C1 #84C140
analogous
#4043C1 #7D40C1 #BD40C1
triadic
#7D40C1 #C17D40 #40C17D
tetradic
#7D40C1 #C14043 #84C140 #40C1BD
square
#7D40C1 #C14043 #84C140 #40C1BD
split-complementary
#7D40C1 #C1BD40 #43C140
monochromatic
#412166 #5F3094 #7D40C1 #9C6ED0 #BC9CDF

Accessibility & contrast

On white

6.22
#7D40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7D40C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40C1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40C1#FFFFFF#000000##FFFFFF
##7D40C11.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0060BE
Tritanopia (blue-blind)
#6F5D7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d40c1;
/* rgb */ color: rgb(125, 64, 193);
/* oklch */ color: oklch(51.4% 0.193 301.6);
Tailwind
colors: {
  custom: {
    50: '#a879d5',
    500: '#7d40c1',
    950: '#000000',
  },
}
SCSS
$custom: #7d40c1;
$custom-light: #a879d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40c1",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 268.372,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51397,
    "c": 0.19277,
    "h": 301.6
  },
  "luminance": 0.11877
}

Semantic roles & 50–950 ramp

primary
#7D40C1
secondary
#B0CB92
accent
#DA4D98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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