#7F4CD8#7F4CD8

#7F4CD8 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 54.9% C 0.204 H 295.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7F4CD8
RGBrgb(127, 76, 216)
HSLhsl(262, 64%, 57%)
HSVhsv(262, 65%, 85%)
CMYKcmyk(41.2%, 64.8%, 0%, 15.3%)
CIE-LABlab(45.13, 51.32, -64.31)
CIE-LCHlch(45.13, 82.27, 308.59°)
OKLaboklab(54.93% 0.0883 -0.1835)
OKLCHoklch(54.93% 0.204 295.7)
XYZxyz(23.7282, 14.6383, 66.5277)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CD8 #A5D84C
analogous
#4C5FD8 #7F4CD8 #C54CD8
triadic
#7F4CD8 #D87F4C #4CD87F
tetradic
#7F4CD8 #D84C5F #A5D84C #4CD8C5
square
#7F4CD8 #D84C5F #A5D84C #4CD8C5
split-complementary
#7F4CD8 #D8C54C #5FD84C
monochromatic
#461E8B #5F29BE #7F4CD8 #A37EE3 #C7B1EE

Accessibility & contrast

On white

5.35
#7F4CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7F4CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CD8
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CD8#FFFFFF#000000##FFFFFF
##7F4CD81.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#0069D5
Tritanopia (blue-blind)
#686D8B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f4cd8;
/* rgb */ color: rgb(127, 76, 216);
/* oklch */ color: oklch(54.9% 0.204 295.7);
Tailwind
colors: {
  custom: {
    50: '#aa81e5',
    500: '#7f4cd8',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cd8;
$custom-light: #aa81e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cd8",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 261.857,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54929,
    "c": 0.20366,
    "h": 295.7
  },
  "luminance": 0.14639
}

Semantic roles & 50–950 ramp

primary
#7F4CD8
secondary
#C8DCA4
accent
#E741AB
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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