#7D4F9D#7D4F9D

#7D4F9D is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.3% C 0.128 H 309.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7D4F9D
RGBrgb(125, 79, 157)
HSLhsl(275, 33%, 46%)
HSVhsv(275, 50%, 62%)
CMYKcmyk(20.4%, 49.7%, 0%, 38.4%)
CIE-LABlab(41.82, 34.33, -35.15)
CIE-LCHlch(41.82, 49.13, 314.33°)
OKLaboklab(51.27% 0.0818 -0.0981)
OKLCHoklch(51.27% 0.128 309.8)
XYZxyz(17.3381, 12.3865, 33.3692)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4F9D #6F9D4F
analogous
#564F9D #7D4F9D #9D4F96
triadic
#7D4F9D #9D7D4F #4F9D7D
tetradic
#7D4F9D #9D564F #6F9D4F #4F969D
square
#7D4F9D #9D564F #6F9D4F #4F969D
split-complementary
#7D4F9D #969D4F #4F9D56
monochromatic
#3C264C #5D3B74 #7D4F9D #9B71B8 #B89ACC

Accessibility & contrast

On white

6.04
#7D4F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7D4F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4F9D
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4F9D#FFFFFF#000000##FFFFFF
##7D4F9D1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B61A0
Deuteranopia (green-blind)
#49639B
Tritanopia (blue-blind)
#795C6F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d4f9d;
/* rgb */ color: rgb(125, 79, 157);
/* oklch */ color: oklch(51.3% 0.128 309.8);
Tailwind
colors: {
  custom: {
    50: '#a482ba',
    500: '#7d4f9d',
    950: '#000000',
  },
}
SCSS
$custom: #7d4f9d;
$custom-light: #a482ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4f9d",
  "rgb": {
    "r": 125,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 275.385,
    "s": 33.051,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51268,
    "c": 0.12777,
    "h": 309.8
  },
  "luminance": 0.12386
}

Semantic roles & 50–950 ramp

primary
#7D4F9D
secondary
#A0B98F
accent
#C95F8A
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7D4F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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