#7D40BB#7D40BB

#7D40BB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.186 H 303.1°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7D40BB
RGBrgb(125, 64, 187)
HSLhsl(270, 49%, 49%)
HSVhsv(270, 66%, 73%)
CMYKcmyk(33.2%, 65.8%, 0%, 26.7%)
CIE-LABlab(40.60, 49.72, -54.88)
CIE-LCHlch(40.60, 74.05, 312.18°)
OKLaboklab(50.96% 0.1017 -0.1558)
OKLCHoklch(50.96% 0.186 303.1)
XYZxyz(19.2584, 11.6146, 48.2313)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40BB #7EBB40
analogous
#4041BB #7D40BB #BB40BB
triadic
#7D40BB #BB7D40 #40BB7D
tetradic
#7D40BB #BB4041 #7EBB40 #40BBBB
square
#7D40BB #BB4041 #7EBB40 #40BBBB
split-complementary
#7D40BB #BBBB40 #41BB40
monochromatic
#402160 #5F308D #7D40BB #9C6CCD #BA99DC

Accessibility & contrast

On white

6.32
#7D40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7D40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40BB
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40BB#FFFFFF#000000##FFFFFF
##7D40BB1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#125FB8
Tritanopia (blue-blind)
#715B78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7d40bb;
/* rgb */ color: rgb(125, 64, 187);
/* oklch */ color: oklch(51.0% 0.186 303.1);
Tailwind
colors: {
  custom: {
    50: '#a779d0',
    500: '#7d40bb',
    950: '#000000',
  },
}
SCSS
$custom: #7d40bb;
$custom-light: #a779d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40bb",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 269.756,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50959,
    "c": 0.18609,
    "h": 303.1
  },
  "luminance": 0.11615
}

Semantic roles & 50–950 ramp

primary
#7D40BB
secondary
#ACC88F
accent
#D94F94
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7D40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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