#7F4CD7#7F4CD7

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

Color values

HEX#7F4CD7
RGBrgb(127, 76, 215)
HSLhsl(262, 63%, 57%)
HSVhsv(262, 65%, 84%)
CMYKcmyk(40.9%, 64.7%, 0%, 15.7%)
CIE-LABlab(45.06, 51.06, -63.85)
CIE-LCHlch(45.06, 81.76, 308.65°)
OKLaboklab(54.85% 0.0884 -0.1822)
OKLCHoklch(54.85% 0.203 295.9)
XYZxyz(23.5994, 14.5867, 65.8489)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CD7 #A4D74C
analogous
#4C5FD7 #7F4CD7 #C44CD7
triadic
#7F4CD7 #D77F4C #4CD77F
tetradic
#7F4CD7 #D74C5F #A4D74C #4CD7C4
square
#7F4CD7 #D74C5F #A4D74C #4CD7C4
split-complementary
#7F4CD7 #D7C44C #5FD74C
monochromatic
#461F8A #5F2ABC #7F4CD7 #A37EE2 #C7B0ED

Accessibility & contrast

On white

5.36
#7F4CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7F4CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CD7
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CD7#FFFFFF#000000##FFFFFF
##7F4CD71.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#0069D4
Tritanopia (blue-blind)
#686C8B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f4cd7;
/* rgb */ color: rgb(127, 76, 215);
/* oklch */ color: oklch(54.9% 0.203 295.9);
Tailwind
colors: {
  custom: {
    50: '#aa81e4',
    500: '#7f4cd7',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cd7;
$custom-light: #aa81e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cd7",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 262.014,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54854,
    "c": 0.2025,
    "h": 295.9
  },
  "luminance": 0.14587
}

Semantic roles & 50–950 ramp

primary
#7F4CD7
secondary
#C7DCA3
accent
#E641AA
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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