#7B56DD#7B56DD

#7B56DD is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.4% C 0.196 H 291.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7B56DD
RGBrgb(123, 86, 221)
HSLhsl(256, 67%, 60%)
HSVhsv(256, 61%, 87%)
CMYKcmyk(44.3%, 61.1%, 0%, 13.3%)
CIE-LABlab(47.09, 46.47, -64.01)
CIE-LCHlch(47.09, 79.10, 305.98°)
OKLaboklab(56.36% 0.0718 -0.1828)
OKLCHoklch(56.36% 0.196 291.4)
XYZxyz(24.5437, 16.0862, 70.2044)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56DD #B8DD56
analogous
#5675DD #7B56DD #BE56DD
triadic
#7B56DD #DD7B56 #56DD7B
tetradic
#7B56DD #DD5675 #B8DD56 #56DDBE
square
#7B56DD #DD5675 #B8DD56 #56DDBE
split-complementary
#7B56DD #DDBE56 #75DD56
monochromatic
#411F9A #5629CD #7B56DD #A389E7 #CBBCF2

Accessibility & contrast

On white

4.98
#7B56DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7B56DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56DD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56DD#FFFFFF#000000##FFFFFF
##7B56DD1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E1
Deuteranopia (green-blind)
#006DDA
Tritanopia (blue-blind)
#5E7591
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7b56dd;
/* rgb */ color: rgb(123, 86, 221);
/* oklch */ color: oklch(56.4% 0.196 291.4);
Tailwind
colors: {
  custom: {
    50: '#a887e8',
    500: '#7b56dd',
    950: '#000000',
  },
}
SCSS
$custom: #7b56dd;
$custom-light: #a887e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56dd",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 221
  },
  "hsl": {
    "h": 256.444,
    "s": 66.502,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56361,
    "c": 0.1964,
    "h": 291.4
  },
  "luminance": 0.16087
}

Semantic roles & 50–950 ramp

primary
#7B56DD
secondary
#D3E1AE
accent
#CE179C
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B56DD

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

Preview Lab → · Contrast checker → · Palette generator →

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