#7F4EAC#7F4EAC

#7F4EAC is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.2% C 0.148 H 306.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7F4EAC
RGBrgb(127, 78, 172)
HSLhsl(271, 38%, 49%)
HSVhsv(271, 55%, 67%)
CMYKcmyk(26.2%, 54.7%, 0%, 32.5%)
CIE-LABlab(42.67, 39.05, -42.70)
CIE-LCHlch(42.67, 57.87, 312.45°)
OKLaboklab(52.22% 0.0872 -0.1201)
OKLCHoklch(52.22% 0.148 306)
XYZxyz(18.9216, 12.9395, 40.5225)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4EAC #7BAC4E
analogous
#504EAC #7F4EAC #AC4EAA
triadic
#7F4EAC #AC7F4E #4EAC7F
tetradic
#7F4EAC #AC504E #7BAC4E #4EAAAC
square
#7F4EAC #AC504E #7BAC4E #4EAAAC
split-complementary
#7F4EAC #AAAC4E #4EAC50
monochromatic
#412858 #603B82 #7F4EAC #9D76C1 #BBA0D4

Accessibility & contrast

On white

5.85
#7F4EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7F4EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4EAC
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4EAC#FFFFFF#000000##FFFFFF
##7F4EAC1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AF
Deuteranopia (green-blind)
#3F65AA
Tritanopia (blue-blind)
#785F75
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f4eac;
/* rgb */ color: rgb(127, 78, 172);
/* oklch */ color: oklch(52.2% 0.148 306.0);
Tailwind
colors: {
  custom: {
    50: '#a781c5',
    500: '#7f4eac',
    950: '#000000',
  },
}
SCSS
$custom: #7f4eac;
$custom-light: #a781c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4eac",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 172
  },
  "hsl": {
    "h": 271.277,
    "s": 37.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52219,
    "c": 0.14842,
    "h": 306
  },
  "luminance": 0.12939
}

Semantic roles & 50–950 ramp

primary
#7F4EAC
secondary
#AAC195
accent
#CE5A91
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F4EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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