#7F4ED8#7F4ED8

#7F4ED8 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.2% C 0.201 H 295.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7F4ED8
RGBrgb(127, 78, 216)
HSLhsl(261, 64%, 58%)
HSVhsv(261, 64%, 85%)
CMYKcmyk(41.2%, 63.9%, 0%, 15.3%)
CIE-LABlab(45.52, 50.27, -63.68)
CIE-LCHlch(45.52, 81.13, 308.29°)
OKLaboklab(55.21% 0.0861 -0.1817)
OKLCHoklch(55.21% 0.201 295.4)
XYZxyz(23.8682, 14.9181, 66.5744)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4ED8 #A7D84E
analogous
#4E62D8 #7F4ED8 #C44ED8
triadic
#7F4ED8 #D87F4E #4ED87F
tetradic
#7F4ED8 #D84E62 #A7D84E #4ED8C4
square
#7F4ED8 #D84E62 #A7D84E #4ED8C4
split-complementary
#7F4ED8 #D8C44E #62D84E
monochromatic
#461F8D #5F2ABF #7F4ED8 #A380E3 #C8B2EE

Accessibility & contrast

On white

5.27
#7F4ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7F4ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4ED8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4ED8#FFFFFF#000000##FFFFFF
##7F4ED81.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#686E8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f4ed8;
/* rgb */ color: rgb(127, 78, 216);
/* oklch */ color: oklch(55.2% 0.201 295.4);
Tailwind
colors: {
  custom: {
    50: '#aa82e5',
    500: '#7f4ed8',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ed8;
$custom-light: #aa82e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ed8",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 261.304,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55208,
    "c": 0.20108,
    "h": 295.4
  },
  "luminance": 0.14919
}

Semantic roles & 50–950 ramp

primary
#7F4ED8
secondary
#C9DDA5
accent
#E741AC
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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