#7F5399#7F5399

#7F5399 is a mid, moderate violet. Relative luminance 0.130; OKLCH L 52.0% C 0.117 H 311.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7F5399
RGBrgb(127, 83, 153)
HSLhsl(278, 30%, 46%)
HSVhsv(278, 46%, 60%)
CMYKcmyk(17%, 45.8%, 0%, 40%)
CIE-LABlab(42.76, 31.68, -31.26)
CIE-LCHlch(42.76, 44.50, 315.38°)
OKLaboklab(51.95% 0.0779 -0.0868)
OKLCHoklch(51.95% 0.117 311.9)
XYZxyz(17.5944, 12.9988, 31.7130)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5399 #6D9953
analogous
#5C5399 #7F5399 #995390
triadic
#7F5399 #997F53 #53997F
tetradic
#7F5399 #995C53 #6D9953 #539099
square
#7F5399 #995C53 #6D9953 #539099
split-complementary
#7F5399 #909953 #53995C
monochromatic
#3D284A #5E3D71 #7F5399 #9D75B4 #B99DCA

Accessibility & contrast

On white

5.83
#7F5399 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7F5399 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5399
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5399#FFFFFF#000000##FFFFFF
##7F53991.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44639C
Deuteranopia (green-blind)
#506697
Tritanopia (blue-blind)
#7C5E6F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f5399;
/* rgb */ color: rgb(127, 83, 153);
/* oklch */ color: oklch(52.0% 0.117 311.9);
Tailwind
colors: {
  custom: {
    50: '#a584b7',
    500: '#7f5399',
    950: '#000000',
  },
}
SCSS
$custom: #7f5399;
$custom-light: #a584b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5399",
  "rgb": {
    "r": 127,
    "g": 83,
    "b": 153
  },
  "hsl": {
    "h": 277.714,
    "s": 29.661,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51952,
    "c": 0.11663,
    "h": 311.9
  },
  "luminance": 0.12998
}

Semantic roles & 50–950 ramp

primary
#7F5399
secondary
#9FB791
accent
#C66287
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #7F5399

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

Preview Lab → · Contrast checker → · Palette generator →

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