#7F4EAE#7F4EAE

#7F4EAE is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.3% C 0.151 H 305.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7F4EAE
RGBrgb(127, 78, 174)
HSLhsl(271, 38%, 49%)
HSVhsv(271, 55%, 68%)
CMYKcmyk(27%, 55.2%, 0%, 31.8%)
CIE-LABlab(42.79, 39.54, -43.70)
CIE-LCHlch(42.79, 58.93, 312.14°)
OKLaboklab(52.34% 0.0873 -0.123)
OKLCHoklch(52.34% 0.151 305.4)
XYZxyz(19.1151, 13.0169, 41.5417)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4EAE #7DAE4E
analogous
#4F4EAE #7F4EAE #AE4EAD
triadic
#7F4EAE #AE7F4E #4EAE7F
tetradic
#7F4EAE #AE4F4E #7DAE4E #4EADAE
square
#7F4EAE #AE4F4E #7DAE4E #4EADAE
split-complementary
#7F4EAE #ADAE4E #4EAE4F
monochromatic
#412859 #603B84 #7F4EAE #9D77C2 #BCA1D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F4EAE#FFFFFF#000000##FFFFFF
##7F4EAE1.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)
#2D64B1
Deuteranopia (green-blind)
#3D65AC
Tritanopia (blue-blind)
#776076
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f4eae;
/* rgb */ color: rgb(127, 78, 174);
/* oklch */ color: oklch(52.3% 0.151 305.4);
Tailwind
colors: {
  custom: {
    50: '#a781c7',
    500: '#7f4eae',
    950: '#000000',
  },
}
SCSS
$custom: #7f4eae;
$custom-light: #a781c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4eae",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 174
  },
  "hsl": {
    "h": 270.625,
    "s": 38.095,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52342,
    "c": 0.15084,
    "h": 305.4
  },
  "luminance": 0.13017
}

Semantic roles & 50–950 ramp

primary
#7F4EAE
secondary
#ABC296
accent
#CE5A93
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F4EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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