#7D40D5#7D40D5

#7D40D5 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.215 H 297.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7D40D5
RGBrgb(125, 64, 213)
HSLhsl(265, 64%, 54%)
HSVhsv(265, 70%, 84%)
CMYKcmyk(41.3%, 70%, 0%, 16.5%)
CIE-LABlab(42.51, 56.19, -66.87)
CIE-LCHlch(42.51, 87.34, 310.04°)
OKLaboklab(52.93% 0.0981 -0.1911)
OKLCHoklch(52.93% 0.215 297.2)
XYZxyz(22.2980, 12.8304, 64.2396)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40D5 #98D540
analogous
#404ED5 #7D40D5 #C840D5
triadic
#7D40D5 #D57D40 #40D57D
tetradic
#7D40D5 #D5404E #98D540 #40D5C8
square
#7D40D5 #D5404E #98D540 #40D5C8
split-complementary
#7D40D5 #D5C840 #4ED540
monochromatic
#441C7F #5F27B1 #7D40D5 #9F72E0 #C1A4EB

Accessibility & contrast

On white

5.89
#7D40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7D40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40D5
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40D5#FFFFFF#000000##FFFFFF
##7D40D51.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D9
Deuteranopia (green-blind)
#0063D2
Tritanopia (blue-blind)
#676586
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d40d5;
/* rgb */ color: rgb(125, 64, 213);
/* oklch */ color: oklch(52.9% 0.215 297.2);
Tailwind
colors: {
  custom: {
    50: '#aa7ae3',
    500: '#7d40d5',
    950: '#000000',
  },
}
SCSS
$custom: #7d40d5;
$custom-light: #aa7ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40d5",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 264.564,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52926,
    "c": 0.21479,
    "h": 297.2
  },
  "luminance": 0.12831
}

Semantic roles & 50–950 ramp

primary
#7D40D5
secondary
#BED899
accent
#E741A3
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7D40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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