#7F56E9#7F56E9

#7F56E9 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.6% C 0.211 H 291.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F56E9
RGBrgb(127, 86, 233)
HSLhsl(257, 77%, 63%)
HSVhsv(257, 63%, 91%)
CMYKcmyk(45.5%, 63.1%, 0%, 8.6%)
CIE-LABlab(48.32, 50.55, -68.78)
CIE-LCHlch(48.32, 85.36, 306.31°)
OKLaboklab(57.62% 0.0761 -0.1967)
OKLCHoklch(57.62% 0.211 291.2)
XYZxyz(26.7840, 17.0499, 78.9547)
Luminance0.1705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56E9 #C0E956
analogous
#5676E9 #7F56E9 #C956E9
triadic
#7F56E9 #E97F56 #56E97F
tetradic
#7F56E9 #E95676 #C0E956 #56E9C9
square
#7F56E9 #E95676 #C0E956 #56E9C9
split-complementary
#7F56E9 #E9C956 #76E956
monochromatic
#4117AE #5620E2 #7F56E9 #A88CF0 #D1C2F7

Accessibility & contrast

On white

4.76
#7F56E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7F56E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56E9
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56E9#FFFFFF#000000##FFFFFF
##7F56E91.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EE
Deuteranopia (green-blind)
#0070E6
Tritanopia (blue-blind)
#5F7998
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f56e9;
/* rgb */ color: rgb(127, 86, 233);
/* oklch */ color: oklch(57.6% 0.211 291.2);
Tailwind
colors: {
  custom: {
    50: '#ac88f1',
    500: '#7f56e9',
    950: '#000000',
  },
}
SCSS
$custom: #7f56e9;
$custom-light: #ac88f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56e9",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 233
  },
  "hsl": {
    "h": 256.735,
    "s": 76.963,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57619,
    "c": 0.21093,
    "h": 291.2
  },
  "luminance": 0.17051
}

Semantic roles & 50–950 ramp

primary
#7F56E9
secondary
#D9E8B3
accent
#D90CA0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F56E9

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

Preview Lab → · Contrast checker → · Palette generator →

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