#7D40A3#7D40A3

#7D40A3 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.3% C 0.159 H 310.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7D40A3
RGBrgb(125, 64, 163)
HSLhsl(277, 44%, 45%)
HSVhsv(277, 61%, 64%)
CMYKcmyk(23.3%, 60.7%, 0%, 36.1%)
CIE-LABlab(39.02, 44.00, -43.19)
CIE-LCHlch(39.02, 61.66, 315.53°)
OKLaboklab(49.32% 0.1029 -0.1215)
OKLCHoklch(49.32% 0.159 310.3)
XYZxyz(16.9004, 10.6714, 35.8127)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40A3 #66A340
analogous
#4C40A3 #7D40A3 #A34097
triadic
#7D40A3 #A37D40 #40A37D
tetradic
#7D40A3 #A34C40 #66A340 #4097A3
square
#7D40A3 #A34C40 #66A340 #4097A3
split-complementary
#7D40A3 #97A340 #40A34C
monochromatic
#3A1D4B #5B2F77 #7D40A3 #9B60C0 #B78CD2

Accessibility & contrast

On white

6.70
#7D40A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7D40A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40A3
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40A3#FFFFFF#000000##FFFFFF
##7D40A31.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A59A6
Deuteranopia (green-blind)
#355DA1
Tritanopia (blue-blind)
#78536B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d40a3;
/* rgb */ color: rgb(125, 64, 163);
/* oklch */ color: oklch(49.3% 0.159 310.3);
Tailwind
colors: {
  custom: {
    50: '#a678bf',
    500: '#7d40a3',
    950: '#000000',
  },
}
SCSS
$custom: #7d40a3;
$custom-light: #a678bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40a3",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 276.97,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49316,
    "c": 0.15926,
    "h": 310.3
  },
  "luminance": 0.10671
}

Semantic roles & 50–950 ramp

primary
#7D40A3
secondary
#99BD82
accent
#D35485
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7D40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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