#7856CC#7856CC

#7856CC is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.9% C 0.175 H 293.0°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7856CC
RGBrgb(120, 86, 204)
HSLhsl(257, 54%, 57%)
HSVhsv(257, 58%, 80%)
CMYKcmyk(41.2%, 57.8%, 0%, 20%)
CIE-LABlab(45.64, 41.14, -56.63)
CIE-LCHlch(45.64, 70.00, 306.00°)
OKLaboklab(54.87% 0.0685 -0.1612)
OKLCHoklch(54.87% 0.175 293)
XYZxyz(21.9697, 15.0077, 58.8543)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856CC #AACC56
analogous
#566FCC #7856CC #B356CC
triadic
#7856CC #CC7856 #56CC78
tetradic
#7856CC #CC566F #AACC56 #56CCB3
square
#7856CC #CC566F #AACC56 #56CCB3
split-complementary
#7856CC #CCB356 #6FCC56
monochromatic
#412781 #5835B0 #7856CC #9E85DA #C3B4E8

Accessibility & contrast

On white

5.25
#7856CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7856CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856CC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856CC#FFFFFF#000000##FFFFFF
##7856CC1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#096ED0
Deuteranopia (green-blind)
#1C6AC9
Tritanopia (blue-blind)
#617089
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7856cc;
/* rgb */ color: rgb(120, 86, 204);
/* oklch */ color: oklch(54.9% 0.175 293.0);
Tailwind
colors: {
  custom: {
    50: '#a487dc',
    500: '#7856cc',
    950: '#000000',
  },
}
SCSS
$custom: #7856cc;
$custom-light: #a487dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7856cc",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 257.288,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54871,
    "c": 0.17515,
    "h": 293
  },
  "luminance": 0.15008
}

Semantic roles & 50–950 ramp

primary
#7856CC
secondary
#C9D7A7
accent
#DD4BB3
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7856CC

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

Preview Lab → · Contrast checker → · Palette generator →

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