#7D4F97#7D4F97

#7D4F97 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 50.9% C 0.120 H 312.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7D4F97
RGBrgb(125, 79, 151)
HSLhsl(278, 31%, 45%)
HSVhsv(278, 48%, 59%)
CMYKcmyk(17.2%, 47.7%, 0%, 40.8%)
CIE-LABlab(41.51, 32.92, -32.04)
CIE-LCHlch(41.51, 45.94, 315.78°)
OKLaboklab(50.93% 0.081 -0.0891)
OKLCHoklch(50.93% 0.12 312.3)
XYZxyz(16.8384, 12.1867, 30.7374)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4F97 #69974F
analogous
#594F97 #7D4F97 #974F8D
triadic
#7D4F97 #977D4F #4F977D
tetradic
#7D4F97 #97594F #69974F #4F8D97
square
#7D4F97 #97594F #69974F #4F8D97
split-complementary
#7D4F97 #8D974F #4F9759
monochromatic
#3A2547 #5C3A6F #7D4F97 #9B6FB4 #B798C9

Accessibility & contrast

On white

6.11
#7D4F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7D4F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4F97
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4F97#FFFFFF#000000##FFFFFF
##7D4F971.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5F9A
Deuteranopia (green-blind)
#4C6395
Tritanopia (blue-blind)
#7A5A6C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d4f97;
/* rgb */ color: rgb(125, 79, 151);
/* oklch */ color: oklch(50.9% 0.120 312.3);
Tailwind
colors: {
  custom: {
    50: '#a481b6',
    500: '#7d4f97',
    950: '#000000',
  },
}
SCSS
$custom: #7d4f97;
$custom-light: #a481b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4f97",
  "rgb": {
    "r": 125,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 278.333,
    "s": 31.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50933,
    "c": 0.12042,
    "h": 312.3
  },
  "luminance": 0.12186
}

Semantic roles & 50–950 ramp

primary
#7D4F97
secondary
#9BB68C
accent
#C76086
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7D4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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