#7D40C3#7D40C3

#7D40C3 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.195 H 301.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#7D40C3
RGBrgb(125, 64, 195)
HSLhsl(268, 52%, 51%)
HSVhsv(268, 67%, 76%)
CMYKcmyk(35.9%, 67.2%, 0%, 23.5%)
CIE-LABlab(41.16, 51.69, -58.64)
CIE-LCHlch(41.16, 78.17, 311.40°)
OKLaboklab(51.54% 0.1008 -0.1669)
OKLCHoklch(51.54% 0.195 301.1)
XYZxyz(20.1388, 11.9668, 52.8680)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40C3 #86C340
analogous
#4044C3 #7D40C3 #BE40C3
triadic
#7D40C3 #C37D40 #40C37D
tetradic
#7D40C3 #C34044 #86C340 #40C3BE
square
#7D40C3 #C34044 #86C340 #40C3BE
split-complementary
#7D40C3 #C3BE40 #44C340
monochromatic
#422168 #5F2F97 #7D40C3 #9D6FD2 #BC9DE0

Accessibility & contrast

On white

6.19
#7D40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7D40C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40C3
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40C3#FFFFFF#000000##FFFFFF
##7D40C31.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#6E5E7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d40c3;
/* rgb */ color: rgb(125, 64, 195);
/* oklch */ color: oklch(51.5% 0.195 301.1);
Tailwind
colors: {
  custom: {
    50: '#a879d6',
    500: '#7d40c3',
    950: '#000000',
  },
}
SCSS
$custom: #7d40c3;
$custom-light: #a879d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40c3",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 267.939,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51545,
    "c": 0.19498,
    "h": 301.1
  },
  "luminance": 0.11967
}

Semantic roles & 50–950 ramp

primary
#7D40C3
secondary
#B1CC92
accent
#DC4C99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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