#7F4DED#7F4DED

#7F4DED is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.7% C 0.227 H 291.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7F4DED
RGBrgb(127, 77, 237)
HSLhsl(259, 82%, 62%)
HSVhsv(259, 68%, 93%)
CMYKcmyk(46.4%, 67.5%, 0%, 7.1%)
CIE-LABlab(46.89, 56.35, -73.37)
CIE-LCHlch(46.89, 92.51, 307.53°)
OKLaboklab(56.68% 0.0845 -0.2102)
OKLCHoklch(56.68% 0.227 291.9)
XYZxyz(26.6881, 15.9333, 81.7736)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DED #BBED4D
analogous
#4D6BED #7F4DED #CF4DED
triadic
#7F4DED #ED7F4D #4DED7F
tetradic
#7F4DED #ED4D6B #BBED4D #4DEDCF
square
#7F4DED #ED4D6B #BBED4D #4DEDCF
split-complementary
#7F4DED #EDCF4D #6BED4D
monochromatic
#4212AE #5817E6 #7F4DED #A785F3 #CFBCF8

Accessibility & contrast

On white

5.02
#7F4DED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7F4DED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DED
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DED#FFFFFF#000000##FFFFFF
##7F4DED1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F2
Deuteranopia (green-blind)
#006CEA
Tritanopia (blue-blind)
#5D7597
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f4ded;
/* rgb */ color: rgb(127, 77, 237);
/* oklch */ color: oklch(56.7% 0.227 291.9);
Tailwind
colors: {
  custom: {
    50: '#ad82f4',
    500: '#7f4ded',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ded;
$custom-light: #ad82f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ded",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 237
  },
  "hsl": {
    "h": 258.75,
    "s": 81.633,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56677,
    "c": 0.22652,
    "h": 291.9
  },
  "luminance": 0.15934
}

Semantic roles & 50–950 ramp

primary
#7F4DED
secondary
#D6E9AD
accent
#DE079B
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4DED

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

Preview Lab → · Contrast checker → · Palette generator →

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