#7F4DDC#7F4DDC

#7F4DDC is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.4% C 0.207 H 294.8°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7F4DDC
RGBrgb(127, 77, 220)
HSLhsl(261, 67%, 58%)
HSVhsv(261, 65%, 86%)
CMYKcmyk(42.3%, 65%, 0%, 13.7%)
CIE-LABlab(45.62, 51.85, -65.81)
CIE-LCHlch(45.62, 83.78, 308.23°)
OKLaboklab(55.37% 0.0868 -0.188)
OKLCHoklch(55.37% 0.207 294.8)
XYZxyz(24.3211, 14.9865, 69.3075)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DDC #AADC4D
analogous
#4D62DC #7F4DDC #C64DDC
triadic
#7F4DDC #DC7F4D #4DDC7F
tetradic
#7F4DDC #DC4D62 #AADC4D #4DDCC6
square
#7F4DDC #DC4D62 #AADC4D #4DDCC6
split-complementary
#7F4DDC #DCC64D #62DC4D
monochromatic
#461D92 #5E27C5 #7F4DDC #A480E6 #C9B3F0

Accessibility & contrast

On white

5.25
#7F4DDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7F4DDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DDC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DDC#FFFFFF#000000##FFFFFF
##7F4DDC1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#666F8E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f4ddc;
/* rgb */ color: rgb(127, 77, 220);
/* oklch */ color: oklch(55.4% 0.207 294.8);
Tailwind
colors: {
  custom: {
    50: '#ab82e8',
    500: '#7f4ddc',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ddc;
$custom-light: #ab82e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ddc",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 220
  },
  "hsl": {
    "h": 260.979,
    "s": 67.136,
    "l": 58.235
  },
  "oklch": {
    "l": 0.55367,
    "c": 0.20702,
    "h": 294.8
  },
  "luminance": 0.14987
}

Semantic roles & 50–950 ramp

primary
#7F4DDC
secondary
#CBDFA6
accent
#EA3EAE
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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