#7D40C0#7D40C0

#7D40C0 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.192 H 301.9°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7D40C0
RGBrgb(125, 64, 192)
HSLhsl(269, 50%, 50%)
HSVhsv(269, 67%, 75%)
CMYKcmyk(34.9%, 66.7%, 0%, 24.7%)
CIE-LABlab(40.95, 50.95, -57.24)
CIE-LCHlch(40.95, 76.63, 311.67°)
OKLaboklab(51.32% 0.1012 -0.1628)
OKLCHoklch(51.32% 0.192 301.9)
XYZxyz(19.8030, 11.8325, 51.0996)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40C0 #83C040
analogous
#4043C0 #7D40C0 #BD40C0
triadic
#7D40C0 #C07D40 #40C07D
tetradic
#7D40C0 #C04043 #83C040 #40C0BD
square
#7D40C0 #C04043 #83C040 #40C0BD
split-complementary
#7D40C0 #C0BD40 #43C040
monochromatic
#412164 #5F3092 #7D40C0 #9C6ECF #BC9CDE

Accessibility & contrast

On white

6.24
#7D40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7D40C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40C0
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40C0#FFFFFF#000000##FFFFFF
##7D40C01.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C4
Deuteranopia (green-blind)
#0060BD
Tritanopia (blue-blind)
#6F5D7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d40c0;
/* rgb */ color: rgb(125, 64, 192);
/* oklch */ color: oklch(51.3% 0.192 301.9);
Tailwind
colors: {
  custom: {
    50: '#a879d4',
    500: '#7d40c0',
    950: '#000000',
  },
}
SCSS
$custom: #7d40c0;
$custom-light: #a879d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40c0",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 268.594,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51323,
    "c": 0.19165,
    "h": 301.9
  },
  "luminance": 0.11833
}

Semantic roles & 50–950 ramp

primary
#7D40C0
secondary
#AFCB91
accent
#DA4E97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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