#7D40AF#7D40AF

#7D40AF is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.173 H 306.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#7D40AF
RGBrgb(125, 64, 175)
HSLhsl(273, 46%, 47%)
HSVhsv(273, 63%, 69%)
CMYKcmyk(28.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(39.79, 46.82, -49.11)
CIE-LCHlch(39.79, 67.86, 313.63°)
OKLaboklab(50.11% 0.1026 -0.1389)
OKLCHoklch(50.11% 0.173 306.4)
XYZxyz(18.0271, 11.1221, 41.7462)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40AF #72AF40
analogous
#4540AF #7D40AF #AF40AA
triadic
#7D40AF #AF7D40 #40AF7D
tetradic
#7D40AF #AF4540 #72AF40 #40AAAF
square
#7D40AF #AF4540 #72AF40 #40AAAF
split-complementary
#7D40AF #AAAF40 #40AF45
monochromatic
#3D1F55 #5D3082 #7D40AF #9B65C7 #B892D7

Accessibility & contrast

On white

6.51
#7D40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D40AF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40AF#FFFFFF#000000##FFFFFF
##7D40AF1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#295EAC
Tritanopia (blue-blind)
#755771
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7d40af;
/* rgb */ color: rgb(125, 64, 175);
/* oklch */ color: oklch(50.1% 0.173 306.4);
Tailwind
colors: {
  custom: {
    50: '#a678c7',
    500: '#7d40af',
    950: '#000000',
  },
}
SCSS
$custom: #7d40af;
$custom-light: #a678c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40af",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 272.973,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50115,
    "c": 0.17269,
    "h": 306.4
  },
  "luminance": 0.11122
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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