#7D40CE#7D40CE

#7D40CE is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.207 H 298.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7D40CE
RGBrgb(125, 64, 206)
HSLhsl(266, 59%, 53%)
HSVhsv(266, 69%, 81%)
CMYKcmyk(39.3%, 68.9%, 0%, 19.2%)
CIE-LABlab(41.97, 54.43, -63.71)
CIE-LCHlch(41.97, 83.79, 310.51°)
OKLaboklab(52.38% 0.0992 -0.1818)
OKLCHoklch(52.38% 0.207 298.6)
XYZxyz(21.4286, 12.4827, 59.6610)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40CE #91CE40
analogous
#404ACE #7D40CE #C440CE
triadic
#7D40CE #CE7D40 #40CE7D
tetradic
#7D40CE #CE404A #91CE40 #40CEC4
square
#7D40CE #CE404A #91CE40 #40CEC4
split-complementary
#7D40CE #CEC440 #4ACE40
monochromatic
#441E75 #602BA6 #7D40CE #9E71DA #BFA1E7

Accessibility & contrast

On white

6.01
#7D40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7D40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40CE
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40CE#FFFFFF#000000##FFFFFF
##7D40CE1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#6A6282
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d40ce;
/* rgb */ color: rgb(125, 64, 206);
/* oklch */ color: oklch(52.4% 0.207 298.6);
Tailwind
colors: {
  custom: {
    50: '#a979de',
    500: '#7d40ce',
    950: '#000000',
  },
}
SCSS
$custom: #7d40ce;
$custom-light: #a979de;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40ce",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 265.775,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52379,
    "c": 0.20712,
    "h": 298.6
  },
  "luminance": 0.12483
}

Semantic roles & 50–950 ramp

primary
#7D40CE
secondary
#B9D496
accent
#E2459F
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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