#7F4FC2#7F4FC2

#7F4FC2 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.8% C 0.174 H 299.8°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7F4FC2
RGBrgb(127, 79, 194)
HSLhsl(265, 49%, 54%)
HSVhsv(265, 59%, 76%)
CMYKcmyk(34.5%, 59.3%, 0%, 23.9%)
CIE-LABlab(44.23, 44.01, -53.09)
CIE-LCHlch(44.23, 68.96, 309.66°)
OKLaboklab(53.8% 0.0863 -0.1506)
OKLCHoklch(53.8% 0.174 299.8)
XYZxyz(21.2836, 13.9989, 52.6092)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FC2 #92C24F
analogous
#4F58C2 #7F4FC2 #B84FC2
triadic
#7F4FC2 #C27F4F #4FC27F
tetradic
#7F4FC2 #C24F58 #92C24F #4FC2B8
square
#7F4FC2 #C24F58 #92C24F #4FC2B8
split-complementary
#7F4FC2 #C2B84F #58C24F
monochromatic
#452770 #61379D #7F4FC2 #A07CD2 #C1AAE2

Accessibility & contrast

On white

5.53
#7F4FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7F4FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FC2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FC2#FFFFFF#000000##FFFFFF
##7F4FC21.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D68C6
Deuteranopia (green-blind)
#2968BF
Tritanopia (blue-blind)
#716781
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f4fc2;
/* rgb */ color: rgb(127, 79, 194);
/* oklch */ color: oklch(53.8% 0.174 299.8);
Tailwind
colors: {
  custom: {
    50: '#a882d5',
    500: '#7f4fc2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fc2;
$custom-light: #a882d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fc2",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 265.043,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53797,
    "c": 0.17355,
    "h": 299.8
  },
  "luminance": 0.13999
}

Semantic roles & 50–950 ramp

primary
#7F4FC2
secondary
#BACF9E
accent
#D8509F
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7F4FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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