#7D4FA2#7D4FA2

#7D4FA2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.6% C 0.134 H 308.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7D4FA2
RGBrgb(125, 79, 162)
HSLhsl(273, 34%, 47%)
HSVhsv(273, 51%, 64%)
CMYKcmyk(22.8%, 51.2%, 0%, 36.5%)
CIE-LABlab(42.09, 35.52, -37.70)
CIE-LCHlch(42.09, 51.80, 313.29°)
OKLaboklab(51.56% 0.0824 -0.1056)
OKLCHoklch(51.56% 0.134 308)
XYZxyz(17.7737, 12.5608, 35.6636)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4FA2 #74A24F
analogous
#534FA2 #7D4FA2 #A24F9E
triadic
#7D4FA2 #A27D4F #4FA27D
tetradic
#7D4FA2 #A2534F #74A24F #4F9EA2
square
#7D4FA2 #A2534F #74A24F #4F9EA2
split-complementary
#7D4FA2 #9EA24F #4FA253
monochromatic
#3E2750 #5D3B79 #7D4FA2 #9B73BB #B89CCF

Accessibility & contrast

On white

5.98
#7D4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7D4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4FA2
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4FA2#FFFFFF#000000##FFFFFF
##7D4FA21.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A5
Deuteranopia (green-blind)
#4564A0
Tritanopia (blue-blind)
#785D71
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d4fa2;
/* rgb */ color: rgb(125, 79, 162);
/* oklch */ color: oklch(51.6% 0.134 308.0);
Tailwind
colors: {
  custom: {
    50: '#a582be',
    500: '#7d4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7d4fa2;
$custom-light: #a582be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4fa2",
  "rgb": {
    "r": 125,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 273.253,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51556,
    "c": 0.13391,
    "h": 308
  },
  "luminance": 0.12561
}

Semantic roles & 50–950 ramp

primary
#7D4FA2
secondary
#A4BC91
accent
#CB5D8E
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7D4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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