#7E4F99#7E4F99

#7E4F99 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.2% C 0.123 H 312.0°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7E4F99
RGBrgb(126, 79, 153)
HSLhsl(278, 32%, 45%)
HSVhsv(278, 48%, 60%)
CMYKcmyk(17.6%, 48.4%, 0%, 40%)
CIE-LABlab(41.73, 33.69, -32.89)
CIE-LCHlch(41.73, 47.08, 315.69°)
OKLaboklab(51.16% 0.0826 -0.0916)
OKLCHoklch(51.16% 0.123 312)
XYZxyz(17.1489, 12.3278, 31.6069)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4F99 #6A994F
analogous
#594F99 #7E4F99 #994F8F
triadic
#7E4F99 #997E4F #4F997E
tetradic
#7E4F99 #99594F #6A994F #4F8F99
square
#7E4F99 #99594F #6A994F #4F8F99
split-complementary
#7E4F99 #8F994F #4F9959
monochromatic
#3C2548 #5D3A71 #7E4F99 #9C70B5 #B898CA

Accessibility & contrast

On white

6.06
#7E4F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7E4F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4F99
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4F99#FFFFFF#000000##FFFFFF
##7E4F991.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E609C
Deuteranopia (green-blind)
#4B6497
Tritanopia (blue-blind)
#7B5B6D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e4f99;
/* rgb */ color: rgb(126, 79, 153);
/* oklch */ color: oklch(51.2% 0.123 312.0);
Tailwind
colors: {
  custom: {
    50: '#a582b7',
    500: '#7e4f99',
    950: '#000000',
  },
}
SCSS
$custom: #7e4f99;
$custom-light: #a582b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4f99",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 153
  },
  "hsl": {
    "h": 278.108,
    "s": 31.897,
    "l": 45.49
  },
  "oklch": {
    "l": 0.51158,
    "c": 0.12329,
    "h": 312
  },
  "luminance": 0.12327
}

Semantic roles & 50–950 ramp

primary
#7E4F99
secondary
#9CB78D
accent
#C86086
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7E4F99

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

Preview Lab → · Contrast checker → · Palette generator →

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