#7D40D3#7D40D3

#7D40D3 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.213 H 297.6°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7D40D3
RGBrgb(125, 64, 211)
HSLhsl(265, 63%, 54%)
HSVhsv(265, 70%, 83%)
CMYKcmyk(40.8%, 69.7%, 0%, 17.3%)
CIE-LABlab(42.35, 55.69, -65.97)
CIE-LCHlch(42.35, 86.33, 310.17°)
OKLaboklab(52.77% 0.0984 -0.1885)
OKLCHoklch(52.77% 0.213 297.6)
XYZxyz(22.0457, 12.7295, 62.9109)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40D3 #96D340
analogous
#404DD3 #7D40D3 #C740D3
triadic
#7D40D3 #D37D40 #40D37D
tetradic
#7D40D3 #D3404D #96D340 #40D3C7
square
#7D40D3 #D3404D #96D340 #40D3C7
split-complementary
#7D40D3 #D3C740 #4DD340
monochromatic
#441D7C #6028AE #7D40D3 #9F72DE #C1A3EA

Accessibility & contrast

On white

5.92
#7D40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7D40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40D3
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40D3#FFFFFF#000000##FFFFFF
##7D40D31.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#0062D0
Tritanopia (blue-blind)
#686485
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d40d3;
/* rgb */ color: rgb(125, 64, 211);
/* oklch */ color: oklch(52.8% 0.213 297.6);
Tailwind
colors: {
  custom: {
    50: '#a97ae1',
    500: '#7d40d3',
    950: '#000000',
  },
}
SCSS
$custom: #7d40d3;
$custom-light: #a97ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40d3",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 264.898,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52769,
    "c": 0.21261,
    "h": 297.6
  },
  "luminance": 0.1273
}

Semantic roles & 50–950 ramp

primary
#7D40D3
secondary
#BDD798
accent
#E642A2
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7D40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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