#7856BF#7856BF

#7856BF is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.0% C 0.159 H 295.5°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7856BF
RGBrgb(120, 86, 191)
HSLhsl(259, 45%, 54%)
HSVhsv(259, 55%, 75%)
CMYKcmyk(37.2%, 55%, 0%, 25.1%)
CIE-LABlab(44.82, 37.60, -50.45)
CIE-LCHlch(44.82, 62.92, 306.69°)
OKLaboklab(53.99% 0.0684 -0.143)
OKLCHoklch(53.99% 0.159 295.5)
XYZxyz(20.4751, 14.4099, 50.9827)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856BF #9DBF56
analogous
#5669BF #7856BF #AD56BF
triadic
#7856BF #BF7856 #56BF78
tetradic
#7856BF #BF5669 #9DBF56 #56BFAD
square
#7856BF #BF5669 #9DBF56 #56BFAD
split-complementary
#7856BF #BFAD56 #69BF56
monochromatic
#412A70 #5B3B9D #7856BF #9B82D0 #BFAFE1

Accessibility & contrast

On white

5.41
#7856BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7856BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856BF
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856BF#FFFFFF#000000##FFFFFF
##7856BF1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266BC3
Deuteranopia (green-blind)
#3169BD
Tritanopia (blue-blind)
#676C82
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7856bf;
/* rgb */ color: rgb(120, 86, 191);
/* oklch */ color: oklch(54.0% 0.159 295.5);
Tailwind
colors: {
  custom: {
    50: '#a387d3',
    500: '#7856bf',
    950: '#000000',
  },
}
SCSS
$custom: #7856bf;
$custom-light: #a387d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7856bf",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 259.429,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53994,
    "c": 0.15854,
    "h": 295.5
  },
  "luminance": 0.1441
}

Semantic roles & 50–950 ramp

primary
#7856BF
secondary
#C0CFA2
accent
#D553AB
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7856BF

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

Preview Lab → · Contrast checker → · Palette generator →

#7856BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva