#7F56E4#7F56E4

#7F56E4 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.2% C 0.205 H 291.9°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7F56E4
RGBrgb(127, 86, 228)
HSLhsl(257, 72%, 62%)
HSVhsv(257, 62%, 89%)
CMYKcmyk(44.3%, 62.3%, 0%, 10.6%)
CIE-LABlab(47.97, 49.19, -66.54)
CIE-LCHlch(47.97, 82.74, 306.48°)
OKLaboklab(57.25% 0.0766 -0.1901)
OKLCHoklch(57.25% 0.205 291.9)
XYZxyz(26.0799, 16.7682, 75.2462)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56E4 #BBE456
analogous
#5674E4 #7F56E4 #C656E4
triadic
#7F56E4 #E47F56 #56E47F
tetradic
#7F56E4 #E45674 #BBE456 #56E4C6
square
#7F56E4 #E45674 #BBE456 #56E4C6
split-complementary
#7F56E4 #E4C656 #74E456
monochromatic
#421AA5 #5823DA #7F56E4 #A78BEC #CFC0F5

Accessibility & contrast

On white

4.82
#7F56E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7F56E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56E4
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56E4#FFFFFF#000000##FFFFFF
##7F56E41.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E8
Deuteranopia (green-blind)
#006FE1
Tritanopia (blue-blind)
#617795
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f56e4;
/* rgb */ color: rgb(127, 86, 228);
/* oklch */ color: oklch(57.2% 0.205 291.9);
Tailwind
colors: {
  custom: {
    50: '#ab88ed',
    500: '#7f56e4',
    950: '#000000',
  },
}
SCSS
$custom: #7f56e4;
$custom-light: #ab88ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56e4",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 257.324,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.57248,
    "c": 0.20494,
    "h": 291.9
  },
  "luminance": 0.16769
}

Semantic roles & 50–950 ramp

primary
#7F56E4
secondary
#D6E5B0
accent
#D5119C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F56E4

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

Preview Lab → · Contrast checker → · Palette generator →

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