#7D40C5#7D40C5

#7D40C5 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.197 H 300.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7D40C5
RGBrgb(125, 64, 197)
HSLhsl(268, 53%, 51%)
HSVhsv(268, 68%, 77%)
CMYKcmyk(36.5%, 67.5%, 0%, 22.7%)
CIE-LABlab(41.31, 52.18, -59.57)
CIE-LCHlch(41.31, 79.19, 311.22°)
OKLaboklab(51.7% 0.1006 -0.1696)
OKLCHoklch(51.7% 0.197 300.7)
XYZxyz(20.3664, 12.0578, 54.0669)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40C5 #88C540
analogous
#4045C5 #7D40C5 #C040C5
triadic
#7D40C5 #C57D40 #40C57D
tetradic
#7D40C5 #C54045 #88C540 #40C5C0
square
#7D40C5 #C54045 #88C540 #40C5C0
split-complementary
#7D40C5 #C5C040 #45C540
monochromatic
#42206A #5F2F99 #7D40C5 #9D6FD3 #BD9EE2

Accessibility & contrast

On white

6.16
#7D40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7D40C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40C5
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40C5#FFFFFF#000000##FFFFFF
##7D40C51.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#6D5F7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d40c5;
/* rgb */ color: rgb(125, 64, 197);
/* oklch */ color: oklch(51.7% 0.197 300.7);
Tailwind
colors: {
  custom: {
    50: '#a879d7',
    500: '#7d40c5',
    950: '#000000',
  },
}
SCSS
$custom: #7d40c5;
$custom-light: #a879d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40c5",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 267.519,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51695,
    "c": 0.1972,
    "h": 300.7
  },
  "luminance": 0.12058
}

Semantic roles & 50–950 ramp

primary
#7D40C5
secondary
#B3CE93
accent
#DD4B9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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