#7F4ABE#7F4ABE

#7F4ABE is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.8% C 0.176 H 301.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7F4ABE
RGBrgb(127, 74, 190)
HSLhsl(267, 47%, 52%)
HSVhsv(267, 61%, 75%)
CMYKcmyk(33.2%, 61.1%, 0%, 25.5%)
CIE-LABlab(42.95, 45.71, -52.82)
CIE-LCHlch(42.95, 69.85, 310.87°)
OKLaboklab(52.78% 0.0925 -0.1498)
OKLCHoklch(52.78% 0.176 301.7)
XYZxyz(20.4933, 13.1272, 50.1594)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4ABE #89BE4A
analogous
#4A4FBE #7F4ABE #B94ABE
triadic
#7F4ABE #BE7F4A #4ABE7F
tetradic
#7F4ABE #BE4A4F #89BE4A #4ABEB9
square
#7F4ABE #BE4A4F #89BE4A #4ABEB9
split-complementary
#7F4ABE #BEB94A #4FBE4A
monochromatic
#442568 #613695 #7F4ABE #9F77CE #BFA4DE

Accessibility & contrast

On white

5.79
#7F4ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7F4ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4ABE
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4ABE#FFFFFF#000000##FFFFFF
##7F4ABE1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C2
Deuteranopia (green-blind)
#2665BB
Tritanopia (blue-blind)
#72627D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f4abe;
/* rgb */ color: rgb(127, 74, 190);
/* oklch */ color: oklch(52.8% 0.176 301.7);
Tailwind
colors: {
  custom: {
    50: '#a87fd2',
    500: '#7f4abe',
    950: '#000000',
  },
}
SCSS
$custom: #7f4abe;
$custom-light: #a87fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4abe",
  "rgb": {
    "r": 127,
    "g": 74,
    "b": 190
  },
  "hsl": {
    "h": 267.414,
    "s": 47.154,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52783,
    "c": 0.17601,
    "h": 301.7
  },
  "luminance": 0.13127
}

Semantic roles & 50–950 ramp

primary
#7F4ABE
secondary
#B4CB98
accent
#D7519A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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