#7E509F#7E509F

#7E509F is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.7% C 0.129 H 309.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7E509F
RGBrgb(126, 80, 159)
HSLhsl(275, 33%, 47%)
HSVhsv(275, 50%, 62%)
CMYKcmyk(20.8%, 49.7%, 0%, 37.6%)
CIE-LABlab(42.27, 34.52, -35.63)
CIE-LCHlch(42.27, 49.60, 314.09°)
OKLaboklab(51.66% 0.0819 -0.0995)
OKLCHoklch(51.66% 0.129 309.5)
XYZxyz(17.7297, 12.6764, 34.3070)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E509F #719F50
analogous
#57509F #7E509F #9F5099
triadic
#7E509F #9F7E50 #509F7E
tetradic
#7E509F #9F5750 #719F50 #50999F
square
#7E509F #9F5750 #719F50 #50999F
split-complementary
#7E509F #999F50 #509F57
monochromatic
#3D274E #5E3C76 #7E509F #9C73B9 #B99CCD

Accessibility & contrast

On white

5.94
#7E509F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7E509F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E509F
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E509F#FFFFFF#000000##FFFFFF
##7E509F1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C62A2
Deuteranopia (green-blind)
#49659D
Tritanopia (blue-blind)
#7A5D70
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e509f;
/* rgb */ color: rgb(126, 80, 159);
/* oklch */ color: oklch(51.7% 0.129 309.5);
Tailwind
colors: {
  custom: {
    50: '#a582bc',
    500: '#7e509f',
    950: '#000000',
  },
}
SCSS
$custom: #7e509f;
$custom-light: #a582bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e509f",
  "rgb": {
    "r": 126,
    "g": 80,
    "b": 159
  },
  "hsl": {
    "h": 274.937,
    "s": 33.054,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51661,
    "c": 0.12887,
    "h": 309.5
  },
  "luminance": 0.12676
}

Semantic roles & 50–950 ramp

primary
#7E509F
secondary
#A2BA91
accent
#C95F8B
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7E509F

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

Preview Lab → · Contrast checker → · Palette generator →

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