#7D40C6#7D40C6

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

Color values

HEX#7D40C6
RGBrgb(125, 64, 198)
HSLhsl(267, 54%, 51%)
HSVhsv(267, 68%, 78%)
CMYKcmyk(36.9%, 67.7%, 0%, 22.4%)
CIE-LABlab(41.38, 52.43, -60.03)
CIE-LCHlch(41.38, 79.71, 311.13°)
OKLaboklab(51.77% 0.1004 -0.171)
OKLCHoklch(51.77% 0.198 300.4)
XYZxyz(20.4814, 12.1038, 54.6724)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40C6 #89C640
analogous
#4046C6 #7D40C6 #C040C6
triadic
#7D40C6 #C67D40 #40C67D
tetradic
#7D40C6 #C64046 #89C640 #40C6C0
square
#7D40C6 #C64046 #89C640 #40C6C0
split-complementary
#7D40C6 #C6C040 #46C640
monochromatic
#42206C #602E9B #7D40C6 #9D6FD4 #BD9EE2

Accessibility & contrast

On white

6.14
#7D40C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7D40C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40C6
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40C6#FFFFFF#000000##FFFFFF
##7D40C61.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0061C3
Tritanopia (blue-blind)
#6D5F7E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d40c6;
/* rgb */ color: rgb(125, 64, 198);
/* oklch */ color: oklch(51.8% 0.198 300.4);
Tailwind
colors: {
  custom: {
    50: '#a879d8',
    500: '#7d40c6',
    950: '#000000',
  },
}
SCSS
$custom: #7d40c6;
$custom-light: #a879d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40c6",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 267.313,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5177,
    "c": 0.1983,
    "h": 300.4
  },
  "luminance": 0.12104
}

Semantic roles & 50–950 ramp

primary
#7D40C6
secondary
#B4CE93
accent
#DD4A9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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