#7F4DDA#7F4DDA

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

Color values

HEX#7F4DDA
RGBrgb(127, 77, 218)
HSLhsl(261, 66%, 58%)
HSVhsv(261, 65%, 85%)
CMYKcmyk(41.7%, 64.7%, 0%, 14.5%)
CIE-LABlab(45.47, 51.32, -64.90)
CIE-LCHlch(45.47, 82.74, 308.33°)
OKLaboklab(55.22% 0.087 -0.1853)
OKLCHoklch(55.22% 0.205 295.1)
XYZxyz(24.0578, 14.8812, 67.9209)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DDA #A8DA4D
analogous
#4D61DA #7F4DDA #C64DDA
triadic
#7F4DDA #DA7F4D #4DDA7F
tetradic
#7F4DDA #DA4D61 #A8DA4D #4DDAC6
square
#7F4DDA #DA4D61 #A8DA4D #4DDAC6
split-complementary
#7F4DDA #DAC64D #61DA4D
monochromatic
#461E8F #5F28C2 #7F4DDA #A380E5 #C8B2EF

Accessibility & contrast

On white

5.28
#7F4DDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F4DDA
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DDA#FFFFFF#000000##FFFFFF
##7F4DDA1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDE
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#676E8D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f4dda;
/* rgb */ color: rgb(127, 77, 218);
/* oklch */ color: oklch(55.2% 0.205 295.1);
Tailwind
colors: {
  custom: {
    50: '#ab82e6',
    500: '#7f4dda',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dda;
$custom-light: #ab82e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dda",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 218
  },
  "hsl": {
    "h": 261.277,
    "s": 65.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55217,
    "c": 0.2047,
    "h": 295.1
  },
  "luminance": 0.14882
}

Semantic roles & 50–950 ramp

primary
#7F4DDA
secondary
#CADEA5
accent
#E93FAD
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4DDA

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

Preview Lab → · Contrast checker → · Palette generator →

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