#7F4DCC#7F4DCC

#7F4DCC is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.2% C 0.188 H 297.9°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7F4DCC
RGBrgb(127, 77, 204)
HSLhsl(264, 55%, 55%)
HSVhsv(264, 62%, 80%)
CMYKcmyk(37.7%, 62.3%, 0%, 20%)
CIE-LABlab(44.49, 47.67, -58.46)
CIE-LCHlch(44.49, 75.43, 309.19°)
OKLaboklab(54.2% 0.0882 -0.1664)
OKLCHoklch(54.2% 0.188 297.9)
XYZxyz(22.3026, 14.1791, 58.6769)
Luminance0.1418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DCC #9ACC4D
analogous
#4D5ACC #7F4DCC #BF4DCC
triadic
#7F4DCC #CC7F4D #4DCC7F
tetradic
#7F4DCC #CC4D5A #9ACC4D #4DCCBF
square
#7F4DCC #CC4D5A #9ACC4D #4DCCBF
split-complementary
#7F4DCC #CCBF4D #5ACC4D
monochromatic
#46237B #6131AB #7F4DCC #A17DDA #C3ACE7

Accessibility & contrast

On white

5.47
#7F4DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7F4DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DCC
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DCC#FFFFFF#000000##FFFFFF
##7F4DCC1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#0D68C9
Tritanopia (blue-blind)
#6D6985
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f4dcc;
/* rgb */ color: rgb(127, 77, 204);
/* oklch */ color: oklch(54.2% 0.188 297.9);
Tailwind
colors: {
  custom: {
    50: '#a981dc',
    500: '#7f4dcc',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dcc;
$custom-light: #a981dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dcc",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 204
  },
  "hsl": {
    "h": 263.622,
    "s": 55.459,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54196,
    "c": 0.1883,
    "h": 297.9
  },
  "luminance": 0.14179
}

Semantic roles & 50–950 ramp

primary
#7F4DCC
secondary
#C0D5A0
accent
#DF49A4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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