#7F4FEB#7F4FEB

#7F4FEB is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.8% C 0.222 H 291.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7F4FEB
RGBrgb(127, 79, 235)
HSLhsl(258, 80%, 62%)
HSVhsv(258, 66%, 92%)
CMYKcmyk(46%, 66.4%, 0%, 7.8%)
CIE-LABlab(47.11, 54.79, -71.88)
CIE-LCHlch(47.11, 90.39, 307.32°)
OKLaboklab(56.79% 0.0829 -0.2058)
OKLCHoklch(56.79% 0.222 291.9)
XYZxyz(26.5396, 16.1012, 80.2907)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FEB #BBEB4F
analogous
#4F6DEB #7F4FEB #CD4FEB
triadic
#7F4FEB #EB7F4F #4FEB7F
tetradic
#7F4FEB #EB4F6D #BBEB4F #4FEBCD
square
#7F4FEB #EB4F6D #BBEB4F #4FEBCD
split-complementary
#7F4FEB #EBCD4F #6DEB4F
monochromatic
#4214AC #581AE3 #7F4FEB #A786F1 #CFBDF7

Accessibility & contrast

On white

4.98
#7F4FEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7F4FEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FEB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FEB#FFFFFF#000000##FFFFFF
##7F4FEB1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#5E7597
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f4feb;
/* rgb */ color: rgb(127, 79, 235);
/* oklch */ color: oklch(56.8% 0.222 291.9);
Tailwind
colors: {
  custom: {
    50: '#ac83f2',
    500: '#7f4feb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4feb;
$custom-light: #ac83f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4feb",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 235
  },
  "hsl": {
    "h": 258.462,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56788,
    "c": 0.22188,
    "h": 291.9
  },
  "luminance": 0.16102
}

Semantic roles & 50–950 ramp

primary
#7F4FEB
secondary
#D6E8AE
accent
#DC0A9B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F4FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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