#7F4DCA#7F4DCA

#7F4DCA is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.1% C 0.186 H 298.4°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7F4DCA
RGBrgb(127, 77, 202)
HSLhsl(264, 54%, 55%)
HSVhsv(264, 62%, 79%)
CMYKcmyk(37.1%, 61.9%, 0%, 20.8%)
CIE-LABlab(44.35, 47.15, -57.53)
CIE-LCHlch(44.35, 74.38, 309.34°)
OKLaboklab(54.05% 0.0883 -0.1636)
OKLCHoklch(54.05% 0.186 298.4)
XYZxyz(22.0643, 14.0838, 57.4216)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DCA #98CA4D
analogous
#4D5ACA #7F4DCA #BE4DCA
triadic
#7F4DCA #CA7F4D #4DCA7F
tetradic
#7F4DCA #CA4D5A #98CA4D #4DCABE
square
#7F4DCA #CA4D5A #98CA4D #4DCABE
split-complementary
#7F4DCA #CABE4D #5ACA4D
monochromatic
#462479 #6132A8 #7F4DCA #A17CD8 #C3ABE6

Accessibility & contrast

On white

5.50
#7F4DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7F4DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DCA
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DCA#FFFFFF#000000##FFFFFF
##7F4DCA1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#1468C7
Tritanopia (blue-blind)
#6E6884
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f4dca;
/* rgb */ color: rgb(127, 77, 202);
/* oklch */ color: oklch(54.1% 0.186 298.4);
Tailwind
colors: {
  custom: {
    50: '#a981db',
    500: '#7f4dca',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dca;
$custom-light: #a981db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dca",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 264,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54054,
    "c": 0.18594,
    "h": 298.4
  },
  "luminance": 0.14084
}

Semantic roles & 50–950 ramp

primary
#7F4DCA
secondary
#BFD49F
accent
#DD4AA3
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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