#7D40C4#7D40C4

#7D40C4 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.196 H 300.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7D40C4
RGBrgb(125, 64, 196)
HSLhsl(268, 53%, 51%)
HSVhsv(268, 67%, 77%)
CMYKcmyk(36.2%, 67.3%, 0%, 23.1%)
CIE-LABlab(41.24, 51.94, -59.10)
CIE-LCHlch(41.24, 78.68, 311.31°)
OKLaboklab(51.62% 0.1007 -0.1683)
OKLCHoklch(51.62% 0.196 300.9)
XYZxyz(20.2522, 12.0122, 53.4655)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40C4 #87C440
analogous
#4045C4 #7D40C4 #BF40C4
triadic
#7D40C4 #C47D40 #40C47D
tetradic
#7D40C4 #C44045 #87C440 #40C4BF
square
#7D40C4 #C44045 #87C440 #40C4BF
split-complementary
#7D40C4 #C4BF40 #45C440
monochromatic
#422069 #5F2F98 #7D40C4 #9D6FD2 #BD9EE1

Accessibility & contrast

On white

6.17
#7D40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7D40C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40C4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40C4#FFFFFF#000000##FFFFFF
##7D40C41.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#6E5E7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d40c4;
/* rgb */ color: rgb(125, 64, 196);
/* oklch */ color: oklch(51.6% 0.196 300.9);
Tailwind
colors: {
  custom: {
    50: '#a879d7',
    500: '#7d40c4',
    950: '#000000',
  },
}
SCSS
$custom: #7d40c4;
$custom-light: #a879d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40c4",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 267.727,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5162,
    "c": 0.19609,
    "h": 300.9
  },
  "luminance": 0.12012
}

Semantic roles & 50–950 ramp

primary
#7D40C4
secondary
#B2CD93
accent
#DC4C99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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