#7856DB#7856DB

#7856DB is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.9% C 0.194 H 290.5°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7856DB
RGBrgb(120, 86, 219)
HSLhsl(255, 65%, 60%)
HSVhsv(255, 61%, 86%)
CMYKcmyk(45.2%, 60.7%, 0%, 14.1%)
CIE-LABlab(46.66, 45.31, -63.58)
CIE-LCHlch(46.66, 78.07, 305.47°)
OKLaboklab(55.94% 0.068 -0.1816)
OKLCHoklch(55.94% 0.194 290.5)
XYZxyz(23.8561, 15.7623, 68.7896)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856DB #B9DB56
analogous
#5677DB #7856DB #BA56DB
triadic
#7856DB #DB7856 #56DB78
tetradic
#7856DB #DB5677 #B9DB56 #56DBBA
square
#7856DB #DB5677 #B9DB56 #56DBBA
split-complementary
#7856DB #DBBA56 #77DB56
monochromatic
#3E2097 #532BC9 #7856DB #A088E6 #C9BBF0

Accessibility & contrast

On white

5.06
#7856DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7856DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856DB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856DB#FFFFFF#000000##FFFFFF
##7856DB1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7856db;
/* rgb */ color: rgb(120, 86, 219);
/* oklch */ color: oklch(55.9% 0.194 290.5);
Tailwind
colors: {
  custom: {
    50: '#a687e7',
    500: '#7856db',
    950: '#000000',
  },
}
SCSS
$custom: #7856db;
$custom-light: #a687e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7856db",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 255.338,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.55938,
    "c": 0.19393,
    "h": 290.5
  },
  "luminance": 0.15763
}

Semantic roles & 50–950 ramp

primary
#7856DB
secondary
#D3E0AD
accent
#E840BD
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7856DB

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

Preview Lab → · Contrast checker → · Palette generator →

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