#7E4F97#7E4F97

#7E4F97 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.0% C 0.121 H 312.9°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7E4F97
RGBrgb(126, 79, 151)
HSLhsl(279, 31%, 45%)
HSVhsv(279, 48%, 59%)
CMYKcmyk(16.6%, 47.7%, 0%, 40.8%)
CIE-LABlab(41.63, 33.23, -31.85)
CIE-LCHlch(41.63, 46.02, 316.21°)
OKLaboklab(51.05% 0.0823 -0.0885)
OKLCHoklch(51.05% 0.121 312.9)
XYZxyz(16.9851, 12.2623, 30.7443)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4F97 #68974F
analogous
#5A4F97 #7E4F97 #974F8C
triadic
#7E4F97 #977E4F #4F977E
tetradic
#7E4F97 #975A4F #68974F #4F8C97
square
#7E4F97 #975A4F #68974F #4F8C97
split-complementary
#7E4F97 #8C974F #4F975A
monochromatic
#3B2547 #5C3A6F #7E4F97 #9C6FB4 #B898C9

Accessibility & contrast

On white

6.08
#7E4F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7E4F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4F97
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4F97#FFFFFF#000000##FFFFFF
##7E4F971.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40609A
Deuteranopia (green-blind)
#4D6395
Tritanopia (blue-blind)
#7C5A6C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e4f97;
/* rgb */ color: rgb(126, 79, 151);
/* oklch */ color: oklch(51.0% 0.121 312.9);
Tailwind
colors: {
  custom: {
    50: '#a582b6',
    500: '#7e4f97',
    950: '#000000',
  },
}
SCSS
$custom: #7e4f97;
$custom-light: #a582b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4f97",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 279.167,
    "s": 31.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51048,
    "c": 0.12085,
    "h": 312.9
  },
  "luminance": 0.12262
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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