#7D40CA#7D40CA

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

Color values

HEX#7D40CA
RGBrgb(125, 64, 202)
HSLhsl(267, 57%, 52%)
HSVhsv(267, 68%, 79%)
CMYKcmyk(38.1%, 68.3%, 0%, 20.8%)
CIE-LABlab(41.67, 53.43, -61.88)
CIE-LCHlch(41.67, 81.75, 310.81°)
OKLaboklab(52.07% 0.0999 -0.1764)
OKLCHoklch(52.07% 0.203 299.5)
XYZxyz(20.9489, 12.2908, 57.1343)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40CA #8DCA40
analogous
#4048CA #7D40CA #C240CA
triadic
#7D40CA #CA7D40 #40CA7D
tetradic
#7D40CA #CA4048 #8DCA40 #40CAC2
square
#7D40CA #CA4048 #8DCA40 #40CAC2
split-complementary
#7D40CA #CAC240 #48CA40
monochromatic
#431F70 #602CA0 #7D40CA #9E70D7 #BEA0E5

Accessibility & contrast

On white

6.07
#7D40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7D40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40CA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40CA#FFFFFF#000000##FFFFFF
##7D40CA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0061C7
Tritanopia (blue-blind)
#6B6180
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d40ca;
/* rgb */ color: rgb(125, 64, 202);
/* oklch */ color: oklch(52.1% 0.203 299.5);
Tailwind
colors: {
  custom: {
    50: '#a879db',
    500: '#7d40ca',
    950: '#000000',
  },
}
SCSS
$custom: #7d40ca;
$custom-light: #a879db;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40ca",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 266.522,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52072,
    "c": 0.20272,
    "h": 299.5
  },
  "luminance": 0.12291
}

Semantic roles & 50–950 ramp

primary
#7D40CA
secondary
#B6D195
accent
#E0489D
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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