#7D40A2#7D40A2

#7D40A2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.158 H 310.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#7D40A2
RGBrgb(125, 64, 162)
HSLhsl(277, 43%, 44%)
HSVhsv(277, 60%, 64%)
CMYKcmyk(22.8%, 60.5%, 0%, 36.5%)
CIE-LABlab(38.96, 43.77, -42.69)
CIE-LCHlch(38.96, 61.14, 315.71°)
OKLaboklab(49.25% 0.1029 -0.1201)
OKLCHoklch(49.25% 0.158 310.6)
XYZxyz(16.8112, 10.6357, 35.3427)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40A2 #65A240
analogous
#4C40A2 #7D40A2 #A24096
triadic
#7D40A2 #A27D40 #40A27D
tetradic
#7D40A2 #A24C40 #65A240 #4096A2
square
#7D40A2 #A24C40 #65A240 #4096A2
split-complementary
#7D40A2 #96A240 #40A24C
monochromatic
#391D4A #5B2F76 #7D40A2 #9B5FC0 #B78BD1

Accessibility & contrast

On white

6.72
#7D40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D40A2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40A2#FFFFFF#000000##FFFFFF
##7D40A21.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B59A5
Deuteranopia (green-blind)
#365DA0
Tritanopia (blue-blind)
#78526B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d40a2;
/* rgb */ color: rgb(125, 64, 162);
/* oklch */ color: oklch(49.3% 0.158 310.6);
Tailwind
colors: {
  custom: {
    50: '#a578be',
    500: '#7d40a2',
    950: '#000000',
  },
}
SCSS
$custom: #7d40a2;
$custom-light: #a578be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40a2",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 277.347,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49251,
    "c": 0.15814,
    "h": 310.6
  },
  "luminance": 0.10635
}

Semantic roles & 50–950 ramp

primary
#7D40A2
secondary
#98BC82
accent
#D35584
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7D40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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