#7D40CF#7D40CF

#7D40CF is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.5% C 0.208 H 298.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7D40CF
RGBrgb(125, 64, 207)
HSLhsl(266, 60%, 53%)
HSVhsv(266, 69%, 81%)
CMYKcmyk(39.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(42.05, 54.68, -64.16)
CIE-LCHlch(42.05, 84.30, 310.44°)
OKLaboklab(52.46% 0.0991 -0.1831)
OKLCHoklch(52.46% 0.208 298.4)
XYZxyz(21.5505, 12.5314, 60.3028)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40CF #92CF40
analogous
#404ACF #7D40CF #C440CF
triadic
#7D40CF #CF7D40 #40CF7D
tetradic
#7D40CF #CF404A #92CF40 #40CFC4
square
#7D40CF #CF404A #92CF40 #40CFC4
split-complementary
#7D40CF #CFC440 #4ACF40
monochromatic
#441E77 #602AA8 #7D40CF #9E71DB #C0A2E8

Accessibility & contrast

On white

5.99
#7D40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7D40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40CF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40CF#FFFFFF#000000##FFFFFF
##7D40CF1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0062CC
Tritanopia (blue-blind)
#696383
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d40cf;
/* rgb */ color: rgb(125, 64, 207);
/* oklch */ color: oklch(52.5% 0.208 298.4);
Tailwind
colors: {
  custom: {
    50: '#a979df',
    500: '#7d40cf',
    950: '#000000',
  },
}
SCSS
$custom: #7d40cf;
$custom-light: #a979df;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40cf",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 265.594,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52457,
    "c": 0.20822,
    "h": 298.4
  },
  "luminance": 0.12532
}

Semantic roles & 50–950 ramp

primary
#7D40CF
secondary
#BAD497
accent
#E345A0
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7D40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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