#7D40BC#7D40BC

#7D40BC is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.187 H 302.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7D40BC
RGBrgb(125, 64, 188)
HSLhsl(270, 49%, 49%)
HSVhsv(270, 66%, 74%)
CMYKcmyk(33.5%, 66%, 0%, 26.3%)
CIE-LABlab(40.67, 49.97, -55.35)
CIE-LCHlch(40.67, 74.57, 312.07°)
OKLaboklab(51.03% 0.1016 -0.1572)
OKLCHoklch(51.03% 0.187 302.9)
XYZxyz(19.3658, 11.6576, 48.7971)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40BC #7FBC40
analogous
#4041BC #7D40BC #BB40BC
triadic
#7D40BC #BC7D40 #40BC7D
tetradic
#7D40BC #BC4041 #7FBC40 #40BCBB
square
#7D40BC #BC4041 #7FBC40 #40BCBB
split-complementary
#7D40BC #BCBB40 #41BC40
monochromatic
#402161 #5F308E #7D40BC #9C6CCD #BB9ADD

Accessibility & contrast

On white

6.30
#7D40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7D40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40BC
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40BC#FFFFFF#000000##FFFFFF
##7D40BC1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#0F60B9
Tritanopia (blue-blind)
#715C78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7d40bc;
/* rgb */ color: rgb(125, 64, 188);
/* oklch */ color: oklch(51.0% 0.187 302.9);
Tailwind
colors: {
  custom: {
    50: '#a779d1',
    500: '#7d40bc',
    950: '#000000',
  },
}
SCSS
$custom: #7d40bc;
$custom-light: #a779d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40bc",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 269.516,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51032,
    "c": 0.1872,
    "h": 302.9
  },
  "luminance": 0.11658
}

Semantic roles & 50–950 ramp

primary
#7D40BC
secondary
#ACC98F
accent
#D94F95
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7D40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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