#7B56EA#7B56EA

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

Color values

HEX#7B56EA
RGBrgb(123, 86, 234)
HSLhsl(255, 78%, 63%)
HSVhsv(255, 63%, 92%)
CMYKcmyk(47.4%, 63.2%, 0%, 8.2%)
CIE-LABlab(48.01, 50.07, -69.86)
CIE-LCHlch(48.01, 85.95, 305.63°)
OKLaboklab(57.33% 0.0708 -0.2)
OKLCHoklch(57.33% 0.212 289.5)
XYZxyz(26.3432, 16.8060, 79.6818)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56EA #C5EA56
analogous
#567BEA #7B56EA #C556EA
triadic
#7B56EA #EA7B56 #56EA7B
tetradic
#7B56EA #EA567B #C5EA56 #56EAC5
square
#7B56EA #EA567B #C5EA56 #56EAC5
split-complementary
#7B56EA #EAC556 #7BEA56
monochromatic
#3C16B0 #5020E3 #7B56EA #A68CF1 #D0C3F8

Accessibility & contrast

On white

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

On black

4.36
#7B56EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7B56EA#FFFFFF#000000##FFFFFF
##7B56EA1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#006EE7
Tritanopia (blue-blind)
#577998
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7b56ea;
/* rgb */ color: rgb(123, 86, 234);
/* oklch */ color: oklch(57.3% 0.212 289.5);
Tailwind
colors: {
  custom: {
    50: '#a987f2',
    500: '#7b56ea',
    950: '#000000',
  },
}
SCSS
$custom: #7b56ea;
$custom-light: #a987f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56ea",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 255,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57328,
    "c": 0.21216,
    "h": 289.5
  },
  "luminance": 0.16807
}

Semantic roles & 50–950 ramp

primary
#7B56EA
secondary
#DBE9B3
accent
#DA0BA6
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B56EA

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

Preview Lab → · Contrast checker → · Palette generator →

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