#7F4DD8#7F4DD8

#7F4DD8 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.1% C 0.202 H 295.5°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7F4DD8
RGBrgb(127, 77, 216)
HSLhsl(262, 64%, 57%)
HSVhsv(262, 64%, 85%)
CMYKcmyk(41.2%, 64.4%, 0%, 15.3%)
CIE-LABlab(45.33, 50.80, -63.99)
CIE-LCHlch(45.33, 81.70, 308.44°)
OKLaboklab(55.07% 0.0872 -0.1826)
OKLCHoklch(55.07% 0.202 295.5)
XYZxyz(23.7977, 14.7771, 66.5509)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DD8 #A6D84D
analogous
#4D60D8 #7F4DD8 #C54DD8
triadic
#7F4DD8 #D87F4D #4DD87F
tetradic
#7F4DD8 #D84D60 #A6D84D #4DD8C5
square
#7F4DD8 #D84D60 #A6D84D #4DD8C5
split-complementary
#7F4DD8 #D8C54D #60D84D
monochromatic
#461F8C #5F2ABE #7F4DD8 #A37FE3 #C7B1EE

Accessibility & contrast

On white

5.31
#7F4DD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7F4DD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DD8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DD8#FFFFFF#000000##FFFFFF
##7F4DD81.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f4dd8;
/* rgb */ color: rgb(127, 77, 216);
/* oklch */ color: oklch(55.1% 0.202 295.5);
Tailwind
colors: {
  custom: {
    50: '#aa82e5',
    500: '#7f4dd8',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dd8;
$custom-light: #aa82e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dd8",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 216
  },
  "hsl": {
    "h": 261.583,
    "s": 64.055,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55068,
    "c": 0.20237,
    "h": 295.5
  },
  "luminance": 0.14778
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F4DD8

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

Preview Lab → · Contrast checker → · Palette generator →

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