#7D40D1#7D40D1

#7D40D1 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.210 H 298.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7D40D1
RGBrgb(125, 64, 209)
HSLhsl(265, 61%, 54%)
HSVhsv(265, 69%, 82%)
CMYKcmyk(40.2%, 69.4%, 0%, 18%)
CIE-LABlab(42.20, 55.18, -65.07)
CIE-LCHlch(42.20, 85.32, 310.30°)
OKLaboklab(52.61% 0.0988 -0.1858)
OKLCHoklch(52.61% 0.21 298)
XYZxyz(21.7965, 12.6299, 61.5987)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40D1 #94D140
analogous
#404BD1 #7D40D1 #C540D1
triadic
#7D40D1 #D17D40 #40D17D
tetradic
#7D40D1 #D1404B #94D140 #40D1C5
square
#7D40D1 #D1404B #94D140 #40D1C5
split-complementary
#7D40D1 #D1C540 #4BD140
monochromatic
#441D79 #6029AB #7D40D1 #9F71DD #C0A3E9

Accessibility & contrast

On white

5.96
#7D40D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7D40D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40D1
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40D1#FFFFFF#000000##FFFFFF
##7D40D11.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0062CE
Tritanopia (blue-blind)
#686384
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d40d1;
/* rgb */ color: rgb(125, 64, 209);
/* oklch */ color: oklch(52.6% 0.210 298.0);
Tailwind
colors: {
  custom: {
    50: '#a979e0',
    500: '#7d40d1',
    950: '#000000',
  },
}
SCSS
$custom: #7d40d1;
$custom-light: #a979e0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40d1",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 265.241,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52612,
    "c": 0.21041,
    "h": 298
  },
  "luminance": 0.1263
}

Semantic roles & 50–950 ramp

primary
#7D40D1
secondary
#BBD597
accent
#E444A1
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7D40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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