#7F4FD5#7F4FD5

#7F4FD5 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.1% C 0.196 H 295.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7F4FD5
RGBrgb(127, 79, 213)
HSLhsl(261, 61%, 57%)
HSVhsv(261, 63%, 84%)
CMYKcmyk(40.4%, 62.9%, 0%, 16.5%)
CIE-LABlab(45.51, 48.95, -61.99)
CIE-LCHlch(45.51, 78.98, 308.30°)
OKLaboklab(55.13% 0.0853 -0.1767)
OKLCHoklch(55.13% 0.196 295.8)
XYZxyz(23.5555, 14.9076, 64.5743)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FD5 #A5D54F
analogous
#4F62D5 #7F4FD5 #C24FD5
triadic
#7F4FD5 #D57F4F #4FD57F
tetradic
#7F4FD5 #D54F62 #A5D54F #4FD5C2
square
#7F4FD5 #D54F62 #A5D54F #4FD5C2
split-complementary
#7F4FD5 #D5C24F #62D54F
monochromatic
#462189 #5F2CBA #7F4FD5 #A380E1 #C7B2ED

Accessibility & contrast

On white

5.27
#7F4FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7F4FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FD5
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FD5#FFFFFF#000000##FFFFFF
##7F4FD51.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#696D8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f4fd5;
/* rgb */ color: rgb(127, 79, 213);
/* oklch */ color: oklch(55.1% 0.196 295.8);
Tailwind
colors: {
  custom: {
    50: '#aa83e3',
    500: '#7f4fd5',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fd5;
$custom-light: #aa83e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fd5",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 213
  },
  "hsl": {
    "h": 261.493,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55131,
    "c": 0.19623,
    "h": 295.8
  },
  "luminance": 0.14908
}

Semantic roles & 50–950 ramp

primary
#7F4FD5
secondary
#C8DBA5
accent
#E543AB
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #7F4FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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