#7F56EF#7F56EF

#7F56EF is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.1% C 0.218 H 290.3°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7F56EF
RGBrgb(127, 86, 239)
HSLhsl(256, 83%, 64%)
HSVhsv(256, 64%, 94%)
CMYKcmyk(46.9%, 64%, 0%, 6.3%)
CIE-LABlab(48.76, 52.19, -71.45)
CIE-LCHlch(48.76, 88.48, 306.15°)
OKLaboklab(58.07% 0.0755 -0.2045)
OKLCHoklch(58.07% 0.218 290.3)
XYZxyz(27.6558, 17.3985, 83.5457)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56EF #C6EF56
analogous
#5679EF #7F56EF #CB56EF
triadic
#7F56EF #EF7F56 #56EF7F
tetradic
#7F56EF #EF5679 #C6EF56 #56EFCB
square
#7F56EF #EF5679 #C6EF56 #56EFCB
split-complementary
#7F56EF #EFCB56 #79EF56
monochromatic
#3E12B9 #551EEA #7F56EF #A98EF4 #D4C6FA

Accessibility & contrast

On white

4.69
#7F56EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#7F56EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56EF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56EF#FFFFFF#000000##FFFFFF
##7F56EF1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F4
Deuteranopia (green-blind)
#0070EC
Tritanopia (blue-blind)
#5B7B9B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f56ef;
/* rgb */ color: rgb(127, 86, 239);
/* oklch */ color: oklch(58.1% 0.218 290.3);
Tailwind
colors: {
  custom: {
    50: '#ac88f5',
    500: '#7f56ef',
    950: '#000000',
  },
}
SCSS
$custom: #7f56ef;
$custom-light: #ac88f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56ef",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 256.078,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58071,
    "c": 0.21805,
    "h": 290.3
  },
  "luminance": 0.174
}

Semantic roles & 50–950 ramp

primary
#7F56EF
secondary
#DDEBB5
accent
#DF06A5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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