#7F56F6#7F56F6

#7F56F6 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.6% C 0.226 H 289.3°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7F56F6
RGBrgb(127, 86, 246)
HSLhsl(255, 90%, 65%)
HSVhsv(255, 65%, 96%)
CMYKcmyk(48.4%, 65%, 0%, 3.5%)
CIE-LABlab(49.28, 54.11, -74.52)
CIE-LCHlch(49.28, 92.10, 305.99°)
OKLaboklab(58.61% 0.0747 -0.2136)
OKLCHoklch(58.61% 0.226 289.3)
XYZxyz(28.7100, 17.8202, 89.0978)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56F6 #CDF656
analogous
#567DF6 #7F56F6 #CF56F6
triadic
#7F56F6 #F67F56 #56F67F
tetradic
#7F56F6 #F6567D #CDF656 #56F6CF
square
#7F56F6 #F6567D #CDF656 #56F6CF
split-complementary
#7F56F6 #F6CF56 #7DF656
monochromatic
#3B0BC7 #531CF3 #7F56F6 #AB90F9 #D7CAFC

Accessibility & contrast

On white

4.60
#7F56F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7F56F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56F6
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56F6#FFFFFF#000000##FFFFFF
##7F56F61.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FB
Deuteranopia (green-blind)
#0071F3
Tritanopia (blue-blind)
#577D9F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f56f6;
/* rgb */ color: rgb(127, 86, 246);
/* oklch */ color: oklch(58.6% 0.226 289.3);
Tailwind
colors: {
  custom: {
    50: '#ad88fa',
    500: '#7f56f6',
    950: '#000000',
  },
}
SCSS
$custom: #7f56f6;
$custom-light: #ad88fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56f6",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 246
  },
  "hsl": {
    "h": 255.375,
    "s": 89.888,
    "l": 65.098
  },
  "oklch": {
    "l": 0.58608,
    "c": 0.22628,
    "h": 289.3
  },
  "luminance": 0.17821
}

Semantic roles & 50–950 ramp

primary
#7F56F6
secondary
#E1EFB9
accent
#E600AB
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F56F6

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

Preview Lab → · Contrast checker → · Palette generator →

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