#7F56EB#7F56EB

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

Color values

HEX#7F56EB
RGBrgb(127, 86, 235)
HSLhsl(257, 79%, 63%)
HSVhsv(257, 63%, 92%)
CMYKcmyk(46%, 63.4%, 0%, 7.8%)
CIE-LABlab(48.47, 51.10, -69.67)
CIE-LCHlch(48.47, 86.40, 306.26°)
OKLaboklab(57.77% 0.0759 -0.1993)
OKLCHoklch(57.77% 0.213 290.9)
XYZxyz(27.0714, 17.1648, 80.4679)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56EB #C2EB56
analogous
#5677EB #7F56EB #C956EB
triadic
#7F56EB #EB7F56 #56EB7F
tetradic
#7F56EB #EB5677 #C2EB56 #56EBC9
square
#7F56EB #EB5677 #C2EB56 #56EBC9
split-complementary
#7F56EB #EBC956 #77EB56
monochromatic
#4015B2 #561FE5 #7F56EB #A88DF1 #D2C3F8

Accessibility & contrast

On white

4.74
#7F56EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#7F56EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56EB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56EB#FFFFFF#000000##FFFFFF
##7F56EB1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#0070E8
Tritanopia (blue-blind)
#5E7999
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f56eb;
/* rgb */ color: rgb(127, 86, 235);
/* oklch */ color: oklch(57.8% 0.213 290.9);
Tailwind
colors: {
  custom: {
    50: '#ac88f2',
    500: '#7f56eb',
    950: '#000000',
  },
}
SCSS
$custom: #7f56eb;
$custom-light: #ac88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56eb",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 256.51,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57768,
    "c": 0.21331,
    "h": 290.9
  },
  "luminance": 0.17166
}

Semantic roles & 50–950 ramp

primary
#7F56EB
secondary
#DAE9B4
accent
#DB0AA2
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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