#7F4FCA#7F4FCA

#7F4FCA is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.183 H 298.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7F4FCA
RGBrgb(127, 79, 202)
HSLhsl(263, 54%, 55%)
HSVhsv(263, 61%, 79%)
CMYKcmyk(37.1%, 60.9%, 0%, 20.8%)
CIE-LABlab(44.76, 46.07, -56.88)
CIE-LCHlch(44.76, 73.20, 309.01°)
OKLaboklab(54.35% 0.086 -0.1617)
OKLCHoklch(54.35% 0.183 298)
XYZxyz(22.2064, 14.3680, 57.4690)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FCA #9ACA4F
analogous
#4F5CCA #7F4FCA #BD4FCA
triadic
#7F4FCA #CA7F4F #4FCA7F
tetradic
#7F4FCA #CA4F5C #9ACA4F #4FCABD
square
#7F4FCA #CA4F5C #9ACA4F #4FCABD
split-complementary
#7F4FCA #CABD4F #5CCA4F
monochromatic
#46257A #6133A9 #7F4FCA #A17ED8 #C3ADE6

Accessibility & contrast

On white

5.42
#7F4FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7F4FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FCA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FCA#FFFFFF#000000##FFFFFF
##7F4FCA1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#1A69C7
Tritanopia (blue-blind)
#6E6A85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f4fca;
/* rgb */ color: rgb(127, 79, 202);
/* oklch */ color: oklch(54.3% 0.183 298.0);
Tailwind
colors: {
  custom: {
    50: '#a982db',
    500: '#7f4fca',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fca;
$custom-light: #a982db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fca",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 202
  },
  "hsl": {
    "h": 263.415,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54347,
    "c": 0.18315,
    "h": 298
  },
  "luminance": 0.14368
}

Semantic roles & 50–950 ramp

primary
#7F4FCA
secondary
#C0D4A1
accent
#DD4BA4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F4FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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