#7D56EB#7D56EB

#7D56EB is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.6% C 0.213 H 290.1°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7D56EB
RGBrgb(125, 86, 235)
HSLhsl(256, 79%, 63%)
HSVhsv(256, 63%, 92%)
CMYKcmyk(46.8%, 63.4%, 0%, 7.8%)
CIE-LABlab(48.28, 50.72, -69.99)
CIE-LCHlch(48.28, 86.44, 305.93°)
OKLaboklab(57.58% 0.0733 -0.2003)
OKLCHoklch(57.58% 0.213 290.1)
XYZxyz(26.7764, 17.0127, 80.4541)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D56EB #C4EB56
analogous
#5679EB #7D56EB #C856EB
triadic
#7D56EB #EB7D56 #56EB7D
tetradic
#7D56EB #EB5679 #C4EB56 #56EBC8
square
#7D56EB #EB5679 #C4EB56 #56EBC8
split-complementary
#7D56EB #EBC856 #79EB56
monochromatic
#3E15B2 #531FE5 #7D56EB #A78DF1 #D1C3F8

Accessibility & contrast

On white

4.77
#7D56EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#7D56EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D56EB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D56EB#FFFFFF#000000##FFFFFF
##7D56EB1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#006FE8
Tritanopia (blue-blind)
#5A7A99
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7d56eb;
/* rgb */ color: rgb(125, 86, 235);
/* oklch */ color: oklch(57.6% 0.213 290.1);
Tailwind
colors: {
  custom: {
    50: '#ab88f2',
    500: '#7d56eb',
    950: '#000000',
  },
}
SCSS
$custom: #7d56eb;
$custom-light: #ab88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d56eb",
  "rgb": {
    "r": 125,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 255.705,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57585,
    "c": 0.21332,
    "h": 290.1
  },
  "luminance": 0.17014
}

Semantic roles & 50–950 ramp

primary
#7D56EB
secondary
#DBE9B4
accent
#DB0AA4
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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