#7D56E8#7D56E8

#7D56E8 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.4% C 0.210 H 290.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7D56E8
RGBrgb(125, 86, 232)
HSLhsl(256, 76%, 62%)
HSVhsv(256, 63%, 91%)
CMYKcmyk(46.1%, 62.9%, 0%, 9%)
CIE-LABlab(48.06, 49.90, -68.65)
CIE-LCHlch(48.06, 84.87, 306.01°)
OKLaboklab(57.36% 0.0736 -0.1964)
OKLCHoklch(57.36% 0.21 290.5)
XYZxyz(26.3466, 16.8408, 78.1907)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D56E8 #C1E856
analogous
#5678E8 #7D56E8 #C656E8
triadic
#7D56E8 #E87D56 #56E87D
tetradic
#7D56E8 #E85678 #C1E856 #56E8C6
square
#7D56E8 #E85678 #C1E856 #56E8C6
split-complementary
#7D56E8 #E8C656 #78E856
monochromatic
#3F17AC #5420E1 #7D56E8 #A68CEF #D0C2F7

Accessibility & contrast

On white

4.81
#7D56E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7D56E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D56E8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D56E8#FFFFFF#000000##FFFFFF
##7D56E81.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075ED
Deuteranopia (green-blind)
#006FE5
Tritanopia (blue-blind)
#5C7997
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d56e8;
/* rgb */ color: rgb(125, 86, 232);
/* oklch */ color: oklch(57.4% 0.210 290.5);
Tailwind
colors: {
  custom: {
    50: '#aa88f0',
    500: '#7d56e8',
    950: '#000000',
  },
}
SCSS
$custom: #7d56e8;
$custom-light: #aa88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d56e8",
  "rgb": {
    "r": 125,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 256.027,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57359,
    "c": 0.20973,
    "h": 290.5
  },
  "luminance": 0.16842
}

Semantic roles & 50–950 ramp

primary
#7D56E8
secondary
#D9E8B2
accent
#D80DA2
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D56E8

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

Preview Lab → · Contrast checker → · Palette generator →

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