#7856CD#7856CD

#7856CD is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.9% C 0.176 H 292.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7856CD
RGBrgb(120, 86, 205)
HSLhsl(257, 54%, 57%)
HSVhsv(257, 58%, 80%)
CMYKcmyk(41.5%, 58%, 0%, 19.6%)
CIE-LABlab(45.71, 41.42, -57.10)
CIE-LCHlch(45.71, 70.54, 305.95°)
OKLaboklab(54.94% 0.0685 -0.1626)
OKLCHoklch(54.94% 0.176 292.8)
XYZxyz(22.0900, 15.0558, 59.4880)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856CD #ABCD56
analogous
#5670CD #7856CD #B456CD
triadic
#7856CD #CD7856 #56CD78
tetradic
#7856CD #CD5670 #ABCD56 #56CDB4
square
#7856CD #CD5670 #ABCD56 #56CDB4
split-complementary
#7856CD #CDB456 #70CD56
monochromatic
#412682 #5834B1 #7856CD #9E85DB #C3B4E9

Accessibility & contrast

On white

5.24
#7856CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7856CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856CD
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856CD#FFFFFF#000000##FFFFFF
##7856CD1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056ED1
Deuteranopia (green-blind)
#196ACA
Tritanopia (blue-blind)
#617089
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7856cd;
/* rgb */ color: rgb(120, 86, 205);
/* oklch */ color: oklch(54.9% 0.176 292.8);
Tailwind
colors: {
  custom: {
    50: '#a487dd',
    500: '#7856cd',
    950: '#000000',
  },
}
SCSS
$custom: #7856cd;
$custom-light: #a487dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7856cd",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 257.143,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54941,
    "c": 0.17642,
    "h": 292.8
  },
  "luminance": 0.15056
}

Semantic roles & 50–950 ramp

primary
#7856CD
secondary
#CAD8A7
accent
#DE4AB4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7856CD

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

Preview Lab → · Contrast checker → · Palette generator →

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