#7D40AE#7D40AE

#7D40AE is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.0% C 0.172 H 306.7°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7D40AE
RGBrgb(125, 64, 174)
HSLhsl(273, 46%, 47%)
HSVhsv(273, 63%, 68%)
CMYKcmyk(28.2%, 63.2%, 0%, 31.8%)
CIE-LABlab(39.72, 46.58, -48.63)
CIE-LCHlch(39.72, 67.34, 313.77°)
OKLaboklab(50.05% 0.1026 -0.1375)
OKLCHoklch(50.05% 0.172 306.7)
XYZxyz(17.9292, 11.0829, 41.2309)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40AE #71AE40
analogous
#4640AE #7D40AE #AE40A8
triadic
#7D40AE #AE7D40 #40AE7D
tetradic
#7D40AE #AE4640 #71AE40 #40A8AE
square
#7D40AE #AE4640 #71AE40 #40A8AE
split-complementary
#7D40AE #A8AE40 #40AE46
monochromatic
#3D1F55 #5D3081 #7D40AE #9B65C6 #B892D7

Accessibility & contrast

On white

6.53
#7D40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7D40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40AE
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40AE#FFFFFF#000000##FFFFFF
##7D40AE1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#2A5EAB
Tritanopia (blue-blind)
#755671
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7d40ae;
/* rgb */ color: rgb(125, 64, 174);
/* oklch */ color: oklch(50.0% 0.172 306.7);
Tailwind
colors: {
  custom: {
    50: '#a678c7',
    500: '#7d40ae',
    950: '#000000',
  },
}
SCSS
$custom: #7d40ae;
$custom-light: #a678c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40ae",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 273.273,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50047,
    "c": 0.17157,
    "h": 306.7
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#7D40AE
secondary
#A2C288
accent
#D6528D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7D40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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