#7B56E7#7B56E7

#7B56E7 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.1% C 0.209 H 289.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7B56E7
RGBrgb(123, 86, 231)
HSLhsl(255, 75%, 62%)
HSVhsv(255, 63%, 91%)
CMYKcmyk(46.8%, 62.8%, 0%, 9.4%)
CIE-LABlab(47.80, 49.24, -68.52)
CIE-LCHlch(47.80, 84.38, 305.70°)
OKLaboklab(57.1% 0.071 -0.1961)
OKLCHoklch(57.1% 0.209 289.9)
XYZxyz(25.9159, 16.6351, 77.4312)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56E7 #C2E756
analogous
#567AE7 #7B56E7 #C356E7
triadic
#7B56E7 #E77B56 #56E77B
tetradic
#7B56E7 #E7567A #C2E756 #56E7C3
square
#7B56E7 #E7567A #C2E756 #56E7C3
split-complementary
#7B56E7 #E7C356 #7AE756
monochromatic
#3E18AA #5120DF #7B56E7 #A58CEF #CFC1F6

Accessibility & contrast

On white

4.85
#7B56E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7B56E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56E7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56E7#FFFFFF#000000##FFFFFF
##7B56E71.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#006EE4
Tritanopia (blue-blind)
#587897
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b56e7;
/* rgb */ color: rgb(123, 86, 231);
/* oklch */ color: oklch(57.1% 0.209 289.9);
Tailwind
colors: {
  custom: {
    50: '#a987f0',
    500: '#7b56e7',
    950: '#000000',
  },
}
SCSS
$custom: #7b56e7;
$custom-light: #a987f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56e7",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 255.31,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57101,
    "c": 0.20855,
    "h": 289.9
  },
  "luminance": 0.16636
}

Semantic roles & 50–950 ramp

primary
#7B56E7
secondary
#D9E7B2
accent
#D70EA4
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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