#7F4FBD#7F4FBD

#7F4FBD is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.5% C 0.168 H 301.0°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7F4FBD
RGBrgb(127, 79, 189)
HSLhsl(266, 45%, 53%)
HSVhsv(266, 58%, 74%)
CMYKcmyk(32.8%, 58.2%, 0%, 25.9%)
CIE-LABlab(43.91, 42.73, -50.69)
CIE-LCHlch(43.91, 66.30, 310.13°)
OKLaboklab(53.46% 0.0863 -0.1435)
OKLCHoklch(53.46% 0.168 301)
XYZxyz(20.7315, 13.7780, 49.7015)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FBD #8DBD4F
analogous
#4F56BD #7F4FBD #B64FBD
triadic
#7F4FBD #BD7F4F #4FBD7F
tetradic
#7F4FBD #BD4F56 #8DBD4F #4FBDB6
square
#7F4FBD #BD4F56 #8DBD4F #4FBDB6
split-complementary
#7F4FBD #BDB64F #56BD4F
monochromatic
#45286A #613896 #7F4FBD #9F7CCE #C0A8DE

Accessibility & contrast

On white

5.59
#7F4FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7F4FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FBD
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FBD#FFFFFF#000000##FFFFFF
##7F4FBD1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A67C1
Deuteranopia (green-blind)
#3067BA
Tritanopia (blue-blind)
#72657E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f4fbd;
/* rgb */ color: rgb(127, 79, 189);
/* oklch */ color: oklch(53.5% 0.168 301.0);
Tailwind
colors: {
  custom: {
    50: '#a882d1',
    500: '#7f4fbd',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fbd;
$custom-light: #a882d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fbd",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 189
  },
  "hsl": {
    "h": 266.182,
    "s": 45.455,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53462,
    "c": 0.16751,
    "h": 301
  },
  "luminance": 0.13778
}

Semantic roles & 50–950 ramp

primary
#7F4FBD
secondary
#B7CC9C
accent
#D5539C
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7F4FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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