#7B56EF#7B56EF

#7B56EF is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.7% C 0.218 H 288.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7B56EF
RGBrgb(123, 86, 239)
HSLhsl(255, 83%, 64%)
HSVhsv(255, 64%, 94%)
CMYKcmyk(48.5%, 64%, 0%, 6.3%)
CIE-LABlab(48.38, 51.46, -72.07)
CIE-LCHlch(48.38, 88.56, 305.53°)
OKLaboklab(57.71% 0.0703 -0.2065)
OKLCHoklch(57.71% 0.218 288.8)
XYZxyz(27.0717, 17.0974, 83.5183)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56EF #CAEF56
analogous
#567DEF #7B56EF #C756EF
triadic
#7B56EF #EF7B56 #56EF7B
tetradic
#7B56EF #EF567D #CAEF56 #56EFC7
square
#7B56EF #EF567D #CAEF56 #56EFC7
split-complementary
#7B56EF #EFC756 #7DEF56
monochromatic
#3A12B9 #4F1EEA #7B56EF #A78EF4 #D2C6FA

Accessibility & contrast

On white

4.75
#7B56EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7B56EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56EF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56EF#FFFFFF#000000##FFFFFF
##7B56EF1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#006FEC
Tritanopia (blue-blind)
#537B9B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7b56ef;
/* rgb */ color: rgb(123, 86, 239);
/* oklch */ color: oklch(57.7% 0.218 288.8);
Tailwind
colors: {
  custom: {
    50: '#aa88f5',
    500: '#7b56ef',
    950: '#000000',
  },
}
SCSS
$custom: #7b56ef;
$custom-light: #aa88f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56ef",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 254.51,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57709,
    "c": 0.21814,
    "h": 288.8
  },
  "luminance": 0.17099
}

Semantic roles & 50–950 ramp

primary
#7B56EF
secondary
#DEEBB5
accent
#DF06AB
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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