#7F4EBE#7F4EBE

#7F4EBE is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.4% C 0.170 H 301.0°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7F4EBE
RGBrgb(127, 78, 190)
HSLhsl(266, 46%, 53%)
HSVhsv(266, 59%, 75%)
CMYKcmyk(33.2%, 58.9%, 0%, 25.5%)
CIE-LABlab(43.77, 43.54, -51.51)
CIE-LCHlch(43.77, 67.44, 310.20°)
OKLaboklab(53.38% 0.0876 -0.1459)
OKLCHoklch(53.38% 0.17 301)
XYZxyz(20.7688, 13.6784, 50.2512)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4EBE #8DBE4E
analogous
#4E55BE #7F4EBE #B74EBE
triadic
#7F4EBE #BE7F4E #4EBE7F
tetradic
#7F4EBE #BE4E55 #8DBE4E #4EBEB7
square
#7F4EBE #BE4E55 #8DBE4E #4EBEB7
split-complementary
#7F4EBE #BEB74E #55BE4E
monochromatic
#45276A #613897 #7F4EBE #9F7BCE #C0A8DF

Accessibility & contrast

On white

5.62
#7F4EBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7F4EBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4EBE
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4EBE#FFFFFF#000000##FFFFFF
##7F4EBE1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1467C2
Deuteranopia (green-blind)
#2D67BB
Tritanopia (blue-blind)
#72657E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f4ebe;
/* rgb */ color: rgb(127, 78, 190);
/* oklch */ color: oklch(53.4% 0.170 301.0);
Tailwind
colors: {
  custom: {
    50: '#a882d2',
    500: '#7f4ebe',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ebe;
$custom-light: #a882d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ebe",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 190
  },
  "hsl": {
    "h": 266.25,
    "s": 46.281,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53376,
    "c": 0.17019,
    "h": 301
  },
  "luminance": 0.13679
}

Semantic roles & 50–950 ramp

primary
#7F4EBE
secondary
#B7CC9C
accent
#D6529C
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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