#7F4EAA#7F4EAA

#7F4EAA is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.1% C 0.146 H 306.6°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7F4EAA
RGBrgb(127, 78, 170)
HSLhsl(272, 37%, 49%)
HSVhsv(272, 54%, 67%)
CMYKcmyk(25.3%, 54.1%, 0%, 33.3%)
CIE-LABlab(42.56, 38.57, -41.70)
CIE-LCHlch(42.56, 56.80, 312.76°)
OKLaboklab(52.1% 0.0871 -0.1172)
OKLCHoklch(52.1% 0.146 306.6)
XYZxyz(18.7310, 12.8633, 39.5185)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4EAA #79AA4E
analogous
#514EAA #7F4EAA #AA4EA7
triadic
#7F4EAA #AA7F4E #4EAA7F
tetradic
#7F4EAA #AA514E #79AA4E #4EA7AA
square
#7F4EAA #AA514E #79AA4E #4EA7AA
split-complementary
#7F4EAA #A7AA4E #4EAA51
monochromatic
#402856 #603B80 #7F4EAA #9D75C0 #BB9FD3

Accessibility & contrast

On white

5.88
#7F4EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7F4EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4EAA
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4EAA#FFFFFF#000000##FFFFFF
##7F4EAA1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3163AD
Deuteranopia (green-blind)
#4065A8
Tritanopia (blue-blind)
#785F74
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f4eaa;
/* rgb */ color: rgb(127, 78, 170);
/* oklch */ color: oklch(52.1% 0.146 306.6);
Tailwind
colors: {
  custom: {
    50: '#a781c4',
    500: '#7f4eaa',
    950: '#000000',
  },
}
SCSS
$custom: #7f4eaa;
$custom-light: #a781c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4eaa",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 271.957,
    "s": 37.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52096,
    "c": 0.14599,
    "h": 306.6
  },
  "luminance": 0.12863
}

Semantic roles & 50–950 ramp

primary
#7F4EAA
secondary
#A8C094
accent
#CD5B90
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7F4EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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