#7F4FD8#7F4FD8

#7F4FD8 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.4% C 0.200 H 295.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7F4FD8
RGBrgb(127, 79, 216)
HSLhsl(261, 64%, 58%)
HSVhsv(261, 63%, 85%)
CMYKcmyk(41.2%, 63.4%, 0%, 15.3%)
CIE-LABlab(45.72, 49.74, -63.36)
CIE-LCHlch(45.72, 80.55, 308.13°)
OKLaboklab(55.35% 0.0851 -0.1808)
OKLCHoklch(55.35% 0.2 295.2)
XYZxyz(23.9398, 15.0613, 66.5982)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FD8 #A8D84F
analogous
#4F63D8 #7F4FD8 #C44FD8
triadic
#7F4FD8 #D87F4F #4FD87F
tetradic
#7F4FD8 #D84F63 #A8D84F #4FD8C4
square
#7F4FD8 #D84F63 #A8D84F #4FD8C4
split-complementary
#7F4FD8 #D8C44F #63D84F
monochromatic
#461F8D #5F2ABF #7F4FD8 #A381E3 #C8B3EE

Accessibility & contrast

On white

5.23
#7F4FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7F4FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FD8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FD8#FFFFFF#000000##FFFFFF
##7F4FD81.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#686F8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f4fd8;
/* rgb */ color: rgb(127, 79, 216);
/* oklch */ color: oklch(55.4% 0.200 295.2);
Tailwind
colors: {
  custom: {
    50: '#aa83e5',
    500: '#7f4fd8',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fd8;
$custom-light: #aa83e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fd8",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 216
  },
  "hsl": {
    "h": 261.022,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5535,
    "c": 0.19978,
    "h": 295.2
  },
  "luminance": 0.15062
}

Semantic roles & 50–950 ramp

primary
#7F4FD8
secondary
#CADDA6
accent
#E741AD
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F4FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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