#7F56EC#7F56EC

#7F56EC is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.8% C 0.214 H 290.7°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7F56EC
RGBrgb(127, 86, 236)
HSLhsl(256, 80%, 63%)
HSVhsv(256, 64%, 93%)
CMYKcmyk(46.2%, 63.6%, 0%, 7.5%)
CIE-LABlab(48.54, 51.37, -70.12)
CIE-LCHlch(48.54, 86.92, 306.23°)
OKLaboklab(57.84% 0.0758 -0.2006)
OKLCHoklch(57.84% 0.215 290.7)
XYZxyz(27.2162, 17.2227, 81.2309)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56EC #C3EC56
analogous
#5678EC #7F56EC #CA56EC
triadic
#7F56EC #EC7F56 #56EC7F
tetradic
#7F56EC #EC5678 #C3EC56 #56ECCA
square
#7F56EC #EC5678 #C3EC56 #56ECCA
split-complementary
#7F56EC #ECCA56 #78EC56
monochromatic
#4014B3 #551FE6 #7F56EC #A98DF2 #D2C4F8

Accessibility & contrast

On white

4.72
#7F56EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7F56EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56EC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56EC#FFFFFF#000000##FFFFFF
##7F56EC1.004.724.444.72
#FFFFFF4.721.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#0070E9
Tritanopia (blue-blind)
#5D7A99
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f56ec;
/* rgb */ color: rgb(127, 86, 236);
/* oklch */ color: oklch(57.8% 0.214 290.7);
Tailwind
colors: {
  custom: {
    50: '#ac88f3',
    500: '#7f56ec',
    950: '#000000',
  },
}
SCSS
$custom: #7f56ec;
$custom-light: #ac88f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56ec",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 256.4,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57844,
    "c": 0.2145,
    "h": 290.7
  },
  "luminance": 0.17224
}

Semantic roles & 50–950 ramp

primary
#7F56EC
secondary
#DBEAB4
accent
#DC09A3
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F56EC

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

Preview Lab → · Contrast checker → · Palette generator →

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