#7F4FD7#7F4FD7

#7F4FD7 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.3% C 0.199 H 295.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7F4FD7
RGBrgb(127, 79, 215)
HSLhsl(261, 63%, 58%)
HSVhsv(261, 63%, 84%)
CMYKcmyk(40.9%, 63.3%, 0%, 15.7%)
CIE-LABlab(45.65, 49.47, -62.90)
CIE-LCHlch(45.65, 80.03, 308.19°)
OKLaboklab(55.28% 0.0851 -0.1794)
OKLCHoklch(55.28% 0.199 295.4)
XYZxyz(23.8109, 15.0098, 65.9195)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FD7 #A7D74F
analogous
#4F63D7 #7F4FD7 #C34FD7
triadic
#7F4FD7 #D77F4F #4FD77F
tetradic
#7F4FD7 #D74F63 #A7D74F #4FD7C3
square
#7F4FD7 #D74F63 #A7D74F #4FD7C3
split-complementary
#7F4FD7 #D7C34F #63D74F
monochromatic
#46208C #5F2BBE #7F4FD7 #A381E2 #C8B3EE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F4FD7#FFFFFF#000000##FFFFFF
##7F4FD71.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)
#006DDB
Deuteranopia (green-blind)
#006AD4
Tritanopia (blue-blind)
#686E8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f4fd7;
/* rgb */ color: rgb(127, 79, 215);
/* oklch */ color: oklch(55.3% 0.199 295.4);
Tailwind
colors: {
  custom: {
    50: '#aa83e4',
    500: '#7f4fd7',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fd7;
$custom-light: #aa83e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fd7",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 215
  },
  "hsl": {
    "h": 261.176,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55277,
    "c": 0.1986,
    "h": 295.4
  },
  "luminance": 0.1501
}

Semantic roles & 50–950 ramp

primary
#7F4FD7
secondary
#C9DCA6
accent
#E642AC
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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