#7B56DB#7B56DB

#7B56DB is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.2% C 0.194 H 291.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7B56DB
RGBrgb(123, 86, 219)
HSLhsl(257, 65%, 60%)
HSVhsv(257, 61%, 86%)
CMYKcmyk(43.8%, 60.7%, 0%, 14.1%)
CIE-LABlab(46.95, 45.92, -63.10)
CIE-LCHlch(46.95, 78.04, 306.04°)
OKLaboklab(56.22% 0.0719 -0.1801)
OKLCHoklch(56.22% 0.194 291.8)
XYZxyz(24.2788, 15.9802, 68.8094)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56DB #B6DB56
analogous
#5673DB #7B56DB #BE56DB
triadic
#7B56DB #DB7B56 #56DB7B
tetradic
#7B56DB #DB5673 #B6DB56 #56DBBE
square
#7B56DB #DB5673 #B6DB56 #56DBBE
split-complementary
#7B56DB #DBBE56 #73DB56
monochromatic
#412097 #572BC9 #7B56DB #A288E6 #CABBF0

Accessibility & contrast

On white

5.00
#7B56DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7B56DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56DB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56DB#FFFFFF#000000##FFFFFF
##7B56DB1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#5F7490
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b56db;
/* rgb */ color: rgb(123, 86, 219);
/* oklch */ color: oklch(56.2% 0.194 291.8);
Tailwind
colors: {
  custom: {
    50: '#a887e7',
    500: '#7b56db',
    950: '#000000',
  },
}
SCSS
$custom: #7b56db;
$custom-light: #a887e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56db",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 256.692,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56216,
    "c": 0.19394,
    "h": 291.8
  },
  "luminance": 0.15981
}

Semantic roles & 50–950 ramp

primary
#7B56DB
secondary
#D2E0AD
accent
#E840B9
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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