#7D40CB#7D40CB

#7D40CB is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.204 H 299.3°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7D40CB
RGBrgb(125, 64, 203)
HSLhsl(266, 57%, 52%)
HSVhsv(266, 68%, 80%)
CMYKcmyk(38.4%, 68.5%, 0%, 20.4%)
CIE-LABlab(41.75, 53.68, -62.34)
CIE-LCHlch(41.75, 82.26, 310.73°)
OKLaboklab(52.15% 0.0997 -0.1778)
OKLCHoklch(52.15% 0.204 299.3)
XYZxyz(21.0676, 12.3383, 57.7599)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40CB #8ECB40
analogous
#4048CB #7D40CB #C340CB
triadic
#7D40CB #CB7D40 #40CB7D
tetradic
#7D40CB #CB4048 #8ECB40 #40CBC3
square
#7D40CB #CB4048 #8ECB40 #40CBC3
split-complementary
#7D40CB #CBC340 #48CB40
monochromatic
#431F72 #602CA2 #7D40CB #9E70D8 #BEA0E5

Accessibility & contrast

On white

6.06
#7D40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7D40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40CB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40CB#FFFFFF#000000##FFFFFF
##7D40CB1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#6B6181
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d40cb;
/* rgb */ color: rgb(125, 64, 203);
/* oklch */ color: oklch(52.1% 0.204 299.3);
Tailwind
colors: {
  custom: {
    50: '#a979dc',
    500: '#7d40cb',
    950: '#000000',
  },
}
SCSS
$custom: #7d40cb;
$custom-light: #a979dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40cb",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 266.331,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52149,
    "c": 0.20382,
    "h": 299.3
  },
  "luminance": 0.12339
}

Semantic roles & 50–950 ramp

primary
#7D40CB
secondary
#B7D295
accent
#E0479D
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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