#7B56EB#7B56EB

#7B56EB is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.4% C 0.213 H 289.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7B56EB
RGBrgb(123, 86, 235)
HSLhsl(255, 79%, 63%)
HSVhsv(255, 63%, 92%)
CMYKcmyk(47.7%, 63.4%, 0%, 7.8%)
CIE-LABlab(48.09, 50.35, -70.31)
CIE-LCHlch(48.09, 86.48, 305.61°)
OKLaboklab(57.4% 0.0707 -0.2013)
OKLCHoklch(57.4% 0.213 289.3)
XYZxyz(26.4873, 16.8636, 80.4405)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56EB #C6EB56
analogous
#567CEB #7B56EB #C556EB
triadic
#7B56EB #EB7B56 #56EB7B
tetradic
#7B56EB #EB567C #C6EB56 #56EBC5
square
#7B56EB #EB567C #C6EB56 #56EBC5
split-complementary
#7B56EB #EBC556 #7CEB56
monochromatic
#3C15B2 #501FE5 #7B56EB #A68DF1 #D0C3F8

Accessibility & contrast

On white

4.80
#7B56EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7B56EB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56EB#FFFFFF#000000##FFFFFF
##7B56EB1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#006FE8
Tritanopia (blue-blind)
#567A99
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7b56eb;
/* rgb */ color: rgb(123, 86, 235);
/* oklch */ color: oklch(57.4% 0.213 289.3);
Tailwind
colors: {
  custom: {
    50: '#a988f2',
    500: '#7b56eb',
    950: '#000000',
  },
}
SCSS
$custom: #7b56eb;
$custom-light: #a988f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56eb",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 254.899,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57404,
    "c": 0.21336,
    "h": 289.3
  },
  "luminance": 0.16865
}

Semantic roles & 50–950 ramp

primary
#7B56EB
secondary
#DCE9B4
accent
#DB0AA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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